skip(N) range

Adam Wey adamwey at thisisnotmyemail.com
Tue Jul 19 17:29:22 PDT 2011


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


More information about the Digitalmars-d-learn mailing list