www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17082] New: assert in std.algorithm.iteration splitter

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

          Issue ID: 17082
           Summary: assert in std.algorithm.iteration splitter example
                    does not compile.
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: donte5379 comcast.net

A line in an example for splitter in std.algorithm.iteration does not compile.
In the new style docs when you run the example you get a message saying
"Temporarily unavailable". If you comment out the line the example passes.

The line is in the third splitter example.
assert(equal(splitter!(a => a.front == 1)(w), [ [[0]], [[2]] ]));

--
Jan 09