www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17047] New: std.algorithm.iteration.splitter should propagate

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 puremagic.com
          Reporter: greeenify 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.

--
Dec 30 2016