Comment #1 by bearophile_hugs — 2010-10-14T10:58:55Z
Your code has some bugs, try this:
import std.algorithm;
void main() {
assert(equal(splitter("hello world", ' '), ["hello", "", "world"]));
}
Unless you have other problems, you may close this bug report as ivalid.
Comment #2 by andrej.mitrovich — 2010-10-14T11:14:55Z
*I* was missing a closing bracket right there, sorry. But the documentation is the one having the "==" instead of ",".
Docs:
assert(equal(splitter("hello world", ' ') == [ "hello", "", "world" ]));
Should be:
assert(equal(splitter("hello world", ' '), [ "hello", "", "world" ]));
So that needs fixing. :)