On Tue, 22 Feb 2011 08:58:04 -0500, Steven Schveighoffer <schvei...@yahoo.com> wrote:

So essentially, your code would look like this in dcollections:

auto arr = new ArrayList!int(1,2,3,4,5);

auto cursor = arr.find(3);

int[] before = arr[0..cursor];
int value = arr[cursor];


Actually, I haven't used dcollections (or much d code) in so long, I forgot the cursor's main function!

int value = cursor.front;

That looks better ;)

-Steve

Reply via email to