On Thursday, May 30, 2013 06:12:51 Diggory wrote: > On Thursday, 30 May 2013 at 03:53:06 UTC, Brad Anderson wrote: > > On Thursday, 30 May 2013 at 03:50:52 UTC, Brad Anderson wrote: > >> Is there a simple way to consume a range apart from > >> std.array.array? I don't need to result of the range stored > >> in an array, I just need a lazy map to evaluate completely. > > > > Obviously I could just popFront. To be more clear, I want > > something like eat() or consume() or exhaust() that I can tack > > on the end of my chained algorithm calls. > > There's "walkLength"?
Ah, I should have thought of that, though that won't work if the range defines length. Of course, if it defines length, you can always use popFrontN with length. - Jonathan M Davis