Casting the Result of splitter() into a string array

bearophile bearophileHUGS at lycos.com
Sun Jun 17 05:17:55 PDT 2012


GreatEmerald:

> A quick and simple question, but I couldn't find the answer to 
> it by myself: how do I cast the return type of 
> std.array.splitter() into a string[]?

splitter(), filter(), etc, are lazy, they return an iterable.

Use split() instead of splitter().

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list