[Issue 12188] std.algorithm.nextPermutation requires random access

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 18 13:14:29 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12188



--- Comment #2 from hsteoh at quickfur.ath.cx 2014-02-18 13:14:25 PST ---
Hmm this sucks. It didn't occur to me that takeN on a bidirectional range
doesn't return a bidirectional range. :-(  In retrospect, it makes sense (takeN
doesn't know the internals of the range, so it has no way to know what .back
and .popBack should do when only the first N elements are desired).

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list