Initializing an associative array into a variable when it is created

Alexander Zhirov azhirov1991 at gmail.com
Sat Jul 15 23:24:27 UTC 2023


I still don't understand how to make this entry correct. I have a 
static array that I want to use exactly as an array (the 
structure doesn't quite fit):

```d
string[][string] arr = [
     "one": ["abc", "def"],
     "two": ["ghi", "jkl"],
     "three": ["mno", "pqr"]
]
```

There are the same number of elements everywhere (in the internal 
array).


More information about the Digitalmars-d-learn mailing list