Supporting foreach (k, v; T.init) for a user-defined (container) type
Per Nordlöw
per.nordlow at gmail.com
Mon Oct 24 21:26:14 UTC 2022
What property of a container (type) `T` enables iteration as
```d
foreach (k, v; T.init)
{
...
}
```
? I thought it sufficed to define `T.byKeyValue` but its presence
seem to have no effect.
More information about the Digitalmars-d-learn
mailing list