[Issue 5645] std.range.drop(), std.range.slice()
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 25 00:44:30 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5645
--- Comment #3 from bearophile_hugs at eml.cc 2011-08-25 00:44:25 PDT ---
(In reply to comment #2)
> The drop function has been added
Thank you.
> take(drop(range, 5), 3);
>
> Personally, I'm not all that thrilled with idea of adding a function such as
> islice, since it's not efficient the way that slices normally are,
islice() is a lazy range implemented essentially as take(drop()), so I don't
understand why it's not efficient.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list