[Issue 16996] std.algorithm.remove with SwapStrategy.unstable removes more entries

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Dec 20 14:15:31 PST 2016


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

safety0ff.bugz <safety0ff.bugz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |safety0ff.bugz at gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from safety0ff.bugz <safety0ff.bugz at gmail.com> ---
Passing a tuple or array of offset is interpreted as (start, end) pairs.

See third example: https://dlang.org/phobos/std_algorithm_mutation.html#.remove

I agree that it is error prone and could use more visible documentation, see
also #12086.

--


More information about the Digitalmars-d-bugs mailing list