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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 22 10:46:27 PDT 2010


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



--- Comment #7 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-07-22 10:46:24 PDT ---
You might misunderstand what I was talking about.

I meant that specific example of a workaround won't work, not that you couldn't
implement takeBack.

As far as I know, the only restriction would be that the input would need to be
a random access range, so you could get the $-Nth element in O(1) time.

I'd probably call it something different however, like takeTail (or just tail),
since back implies you only want the back element, or are starting with the
back element.

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