[Issue 5645] std.range.drop(), std.range.slice()
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 24 21:22:10 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5645
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jmdavisProg at gmx.com
Resolution| |FIXED
--- Comment #2 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-08-24 21:22:04 PDT ---
The drop function has been added
https://github.com/D-Programming-
Language/phobos/commit/6b6c604bbeb66ca1811a3a02b4f807d27621580f
You can get the islice functionality by combining take with drop. e.g.
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, and I'm
afraid that it would give the impression that it is - that and the fact that
you end up with a new type unless the range actually _is_ sliceable. If you
still want such a function though, please create a new enhancement request for
it.
--
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