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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 31 19:29:22 UTC 2018


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

Seb <greensunny12 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |greensunny12 at gmail.com
         Resolution|---                         |WONTFIX

--- Comment #1 from Seb <greensunny12 at gmail.com> ---
https://github.com/dlang/phobos/pull/6150

> Making splitter a bidirectional range fundamentally broken - at least if the delimiter has more than one element. Think about something like

---
auto result = "*******".splitter("**"); // odd number in the string being
split, even number in the delimeter
---

> The range is not going to have the same elements if it's iterated from the back. It will end up being split differently.

--


More information about the Digitalmars-d-bugs mailing list