Correct use of map

Dfr deflexor at yandex.ru
Fri Jan 3 11:45:28 PST 2014


Here is few code eaxamples, i don't know why it is doesn't work 
as expected.

Here i want to transform string into list of tuples split by 
character:

auto nameparts = splitter("go.home", '.').map!(v => 
tuple(v,0)).array;

This gives me not very useful message about assert and stuff:
core.exception.AssertError at std.algorithm(1942): Assertion failure



More information about the Digitalmars-d-learn mailing list