skip(N) range

Jesse Phillips jessekphillips+D at gmail.com
Tue Jul 19 18:14:21 PDT 2011


Adam Wey Wrote:

> Is there a skip() function for ranges? I need to skip N elements of a range
> and then take M elements. Something like
> 
> writeln(take(range, 10), ": ", take(skip(range, 10), 10));
> 
> Thanks

There is popFrontN

http://d-programming-language.org/phobos/std_range.html#popFrontN


More information about the Digitalmars-d-learn mailing list