www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15735] New: std.algorithm.iteration.splitter returns empty


          Issue ID: 15735
           Summary: std.algorithm.iteration.splitter returns empty range
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: dragoscarp gmail.com

The docs say "If the empty range is given, the result is a range with one empty

    import std.algorithm : equal, splitter;

    assert("".splitter('_').equal([""])); // asserts: returned range is empty

Feb 28 2016