[Issue 17082] New: assert in std.algorithm.iteration splitter example does not compile.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jan 9 14:18:05 PST 2017
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 at puremagic.com
Reporter: donte5379 at 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]] ]));
--
More information about the Digitalmars-d-bugs
mailing list