Using to! ?

unknown unknown at unknown.c
Wed Jun 17 05:27:02 PDT 2009


unknown Wrote:

Figured it out.
Forget it.

> Hi,
> 
> Given the example below:
> string str = "1 2 3 4 5 6";
> double[] numbers = to!(double[])(split(str));
> writefln(to!string(numbers));
> 
> I get [1, 2, 3, 4, 5, 6] which is okay.
> 
> How do I output it with different separators?
> 
> What I would like to get is [ 1 2 3 4 5 6 ] or ( 1 2 3 4 5 6 ).
> 
> unknown
> 
> 



More information about the Digitalmars-d-learn mailing list