Re: List of Dynamic Arrays

2021-06-17 Thread Ali Çehreli via Digitalmars-d-learn
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

Re: List of Dynamic Arrays

2021-06-17 Thread Justin Choi via Digitalmars-d-learn
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

List of Dynamic Arrays

2021-06-17 Thread Justin Choi via Digitalmars-d-learn
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.

Re: List of Dynamic Arrays

2021-06-17 Thread Adam D Ruppe via Digitalmars-d-learn
On Thursday, 17 June 2021 at 15:57:46 UTC, Justin Choi wrote: I want to write something like `DList!int[]()` DList!(int[])() ?