What to use instead of array.join if RHS is not a range?

bearophile bearophileHUGS at lycos.com
Mon Nov 26 18:07:54 PST 2012


> sep ~ (items.front ~ prependToAll(items[1 .. $], sep));

Better:

[sep, items.front] ~ prependToAll(items[1 .. $], sep);

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list