how to filter associative arrays with foreach ?

someone someone at somewhere.com
Mon Jun 21 15:19:21 UTC 2021


On Monday, 21 June 2021 at 08:35:19 UTC, frame wrote:

> An associative array is not a range but a struct, so it is 
> extra work to create a range from the AA to apply range 
> functions.
>
> You can get a range from it by using something like 
> std.array.byPair() but for this usage you would be better of 
> with your own function or template.

Crystal-clear. Thanks !


More information about the Digitalmars-d-learn mailing list