www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - List of Dynamic Arrays

reply Justin Choi <justinjchoice gmail.com> writes:
If I wanted to create a DList (or any similar data structure) of 
multiple integers, how would I accomplish this?

I want to write something like `DList!int[]()` but the best I can 
do for now is a format such as `DList!(Tuple(int, int))()` which 
confines me to a fixed number of integers.
Jun 17 2021
parent reply Adam D Ruppe <destructionator gmail.com> writes:
On Thursday, 17 June 2021 at 15:57:46 UTC, Justin Choi wrote:
 I want to write something like `DList!int[]()`
DList!(int[])() ?
Jun 17 2021
parent reply Justin Choi <justinjchoice gmail.com> writes:
On Thursday, 17 June 2021 at 15:58:40 UTC, Adam D Ruppe wrote:
 On Thursday, 17 June 2021 at 15:57:46 UTC, Justin Choi wrote:
 I want to write something like `DList!int[]()`
DList!(int[])() ?
Thanks I've mentally slapped myself a hundred times for this mistake :D
Jun 17 2021
parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 6/17/21 9:10 AM, Justin Choi wrote:

 DList!(int[])() ?
Thanks I've mentally slapped myself a hundred times for this mistake :D
Also, unless DList is really needed, why not: int[][] Ali
Jun 17 2021