Casting the Result of splitter() into a string array

GreatEmerald pastas4 at gmail.com
Sun Jun 17 05:11:27 PDT 2012


On Sunday, 17 June 2012 at 11:58:58 UTC, Jonathan M Davis wrote:
> splitter(" a b ") is going to return a range of strings. If you 
> were to do
> array(splitter("a b ")), you'd get ["", "a", "b"].

Aha, that worked! Thanks!

Still makes me wonder how you're supposed to figure out that this 
type is a range and not anything else from the library 
documentation, though... Oh well.


More information about the Digitalmars-d-learn mailing list