[Issue 17047] New: std.algorithm.iteration.splitter should propagate bidirectionality

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Dec 30 13:10:15 PST 2016


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

          Issue ID: 17047
           Summary: std.algorithm.iteration.splitter should propagate
                    bidirectionality
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: greeenify at gmail.com

For splitter with a range as separator, the propagation for bidirectionality
(back, popBack) is missing, see e.g.:

https://github.com/dlang/phobos/blob/3d98191ce9fee0d2bf2b2c4982242afe413e37bd/std/algorithm/iteration.d#L3839

Moreover, there are no tests either for the bidirectionaility of splitter with
a sole element as splitter.

It might even be possible to unify both splitter implementations - they look
pretty similar.

--


More information about the Digitalmars-d-bugs mailing list