Short list with things to finish for D2
bearophile
bearophileHUGS at lycos.com
Thu Dec 10 19:23:06 PST 2009
Stewart Gordon:
> But in D, you can use a negative index/key in an AA or custom array type.
This is natural & easy to do in Python too.
> And is there any equivalent in Python to a[$/2] or anything fancy like that?
You have to do it in explicit way:
a[len(a) / 2]
Or today better (// is the integer division):
a[len(a) // 2]
Bye,
bearophile
More information about the Digitalmars-d
mailing list