Re: How convert DList!string to string array

2014-02-15 Thread Jakob Ovrum
On Saturday, 15 February 2014 at 18:30:39 UTC, Timon Gehr wrote: On 02/15/2014 07:23 PM, Jakob Ovrum wrote: On Saturday, 15 February 2014 at 18:14:00 UTC, Timon Gehr wrote: On 02/15/2014 06:11 PM, Jakob Ovrum wrote: ... You can construct containers from ranges directly: auto c = Array!string

Re: How convert DList!string to string array

2014-02-15 Thread Timon Gehr
On 02/15/2014 07:23 PM, Jakob Ovrum wrote: On Saturday, 15 February 2014 at 18:14:00 UTC, Timon Gehr wrote: On 02/15/2014 06:11 PM, Jakob Ovrum wrote: ... You can construct containers from ranges directly: auto c = Array!string(a[]); This seems obvious, but it is not actually true. It is

Re: How convert DList!string to string array

2014-02-15 Thread Jesse Phillips
On Saturday, 15 February 2014 at 16:38:42 UTC, Timon Gehr wrote: On 02/15/2014 05:30 PM, Denis Mezhov wrote: Please help. How to convert DList!string to string array? auto a = DList!string(); a.insertFront("123"); a.insertFront("abc"); string[] b = a[]; Array!string c = a[]; Don't work. a

Re: How convert DList!string to string array

2014-02-15 Thread Jakob Ovrum
On Saturday, 15 February 2014 at 18:14:00 UTC, Timon Gehr wrote: On 02/15/2014 06:11 PM, Jakob Ovrum wrote: ... You can construct containers from ranges directly: auto c = Array!string(a[]); This seems obvious, but it is not actually true. It is a defined container primitive. The first one

Re: How convert DList!string to string array

2014-02-15 Thread Timon Gehr
On 02/15/2014 06:11 PM, Jakob Ovrum wrote: ... You can construct containers from ranges directly: auto c = Array!string(a[]); This seems obvious, but it is not actually true.

Re: How convert DList!string to string array

2014-02-15 Thread Jakob Ovrum
On Saturday, 15 February 2014 at 16:38:42 UTC, Timon Gehr wrote: On 02/15/2014 05:30 PM, Denis Mezhov wrote: Please help. How to convert DList!string to string array? auto a = DList!string(); a.insertFront("123"); a.insertFront("abc"); string[] b = a[]; Array!string c = a[]; Don't work. a

Re: How convert DList!string to string array

2014-02-15 Thread Denis Mezhov
On Saturday, 15 February 2014 at 16:38:42 UTC, Timon Gehr wrote: On 02/15/2014 05:30 PM, Denis Mezhov wrote: Please help. How to convert DList!string to string array? auto a = DList!string(); a.insertFront("123"); a.insertFront("abc"); string[] b = a[]; Array!string c = a[]; Don't work. a

Re: How convert DList!string to string array

2014-02-15 Thread Timon Gehr
On 02/15/2014 05:30 PM, Denis Mezhov wrote: Please help. How to convert DList!string to string array? auto a = DList!string(); a.insertFront("123"); a.insertFront("abc"); string[] b = a[]; Array!string c = a[]; Don't work. auto b = a[].array; Array!string c; c.insertBack(a[]);