Short list with things to finish for D2
Stewart Gordon
smjg_1998 at yahoo.com
Thu Dec 10 17:58:22 PST 2009
Simen kjaeraas wrote:
> On Tue, 08 Dec 2009 04:02:21 +0100, Ellery Newcomer
> <ellery-newcomer at utulsa.edu> wrote:
>
>> On 12/07/2009 08:33 PM, Stewart Gordon wrote:
>>> bearophile wrote:
>>> <snip>
>>>> In Python you usually just omit the value:
>>>> a[:5] === a[0 .. 5]
>>>> a[5:] === a[5 .. $]
>>>
>>> Which doesn't accommodate anything equivalent to a[$-4 .. $-2].
>>
>> you mean this?
>>
>> a[-4:-2]
>
> That, however (like D) does not support arrays with negative indices.
But in D, you can use a negative index/key in an AA or custom array type.
And is there any equivalent in Python to a[$/2] or anything fancy like that?
Stewart.
More information about the Digitalmars-d
mailing list