KennyTM~ Wrote:

> > If it's ordered, then why doesn't [0..15] make sense to get the first 15
> > elements?
> 
> auto a = new OrderedDict!(int, string);
> a[-3] = "negative three";
> a[-1] = "negative one";
> a[0] = "zero";
> a[3] = "three";
> a[4] = "four";
> assert(a[0] == "zero");
> return a[0..4]; // which slice should it return?

If your collection supports the array interface, you can provide it explicitly, 
when zero means the start.

Reply via email to