Associative arrays

Chris Piker chris at hoopjump.com
Tue May 18 09:56:37 UTC 2021


On Tuesday, 18 May 2021 at 09:24:02 UTC, Mathias LANG wrote:
>
> https://github.com/dlang/druntime/blob/bf21d1bad623c6988d644117c3c0aa4d4f08b771/src/object.d#L2657-L2660

Wait.  Are the unittests from that link indicative of the current 
end-user syntax, or what AA usage would look like under a library 
scheme? (or both?)

from line: 2892
```d
auto dict = ["k1": 1, "k2": 2];
int sum;
foreach (v; dict.byValue)
    sum += v;
```



More information about the Digitalmars-d mailing list