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. -- Simen