Task to throw away string parts, use joiner and splitter not very successful

bearophile bearophileHUGS at lycos.com
Tue Dec 31 16:19:36 PST 2013


Chris Cain:

> From your error message: isForwardRange!Separator
>
> Your separator is a character, which isn't a forward range. Try 
> this:
> `auto name1 = joiner(nameparts[0 .. $-1], ".");`

But splitting on a char is a common operation, and isn't it more 
efficient than splitting on a string?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list