Correct use of map
monarch_dodra
monarchdodra at gmail.com
Sat Jan 4 00:52:53 PST 2014
On Saturday, 4 January 2014 at 07:57:04 UTC, Dfr wrote:
> Thank you fo reply, i'm using DMD32 D Compiler v2.064
> Tried to copy/paste your code and here is full message what it
> prints:
Hi Dfr. It's a known (and fixed) bug.
If you need to workaround it, you can use a named struct instead,
something like:
struct TSI{string s; int i;}
auto nameparts = splitter("go.home", '.').map!(v =>
TSI(v,0)).array;
More information about the Digitalmars-d-learn
mailing list