joiner correct usage

Dfr deflexor at yandex.ru
Wed Dec 25 10:21:17 PST 2013


Hello, following code:

import std.algorithm : joiner;
string joined = joiner(["hello", "world"], " ");

Results in:

Error: cannot implicitly convert expression (joiner(...)) of type 
Result to string

Any idea how to make this work ?


More information about the Digitalmars-d-learn mailing list