[Issue 4492] Version of take() which takes from the back of a range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 21 19:57:44 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4492



--- Comment #4 from Jonathan M Davis <jmdavisProg at gmail.com> 2010-07-21 19:57:42 PDT ---
Hmm. Well, it certainly _looks_ inefficient, but if it's not, all the better.
It would still be a bit ugly to have to code it that way though.

As for takeBack() being unimplementable... Couldn't popBack() be used to
construct a new range? Or does that not work? I haven't look at the source for
take(), but I would have half expected it to do something similar with
popFront(). What it is it about the back which would make it so much less
tractable than the front for non-random access ranges?

-- 
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