how to filter associative arrays with foreach ?
someone
someone at somewhere.com
Mon Jun 21 22:37:12 UTC 2021
On Monday, 21 June 2021 at 15:32:09 UTC, wjoe wrote:
> something like this ?
>
> ``` D
> import std.array;
> import std.algorithm;
>
> udtComputers.byPair
> .filter!(p => p.key != strComputerIDunwanted)
> .each!( (p) { /* foreach body */ } );
> ```
This seems really interesting :)
Almost three weeks with D and I still must learn a lot of things,
there's a lot to :) !
Thanks for your tip !
More information about the Digitalmars-d-learn
mailing list