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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Aug 11 08:07:30 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12188

Andrei Alexandrescu <andrei at erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei at erdani.com

--- Comment #3 from Andrei Alexandrescu <andrei at erdani.com> ---
It's easy to implement allBefore to return a new range type distinct (e.g.
Voldemort) from R. That range would keep the two ranges as state and would say
it's empty when whole.sameHead(right).

--


More information about the Digitalmars-d-bugs mailing list