How to avoid variable capturing in `foreach` loop with lambdas?

thebluepandabear therealbluepandabear at protonmail.com
Thu Jan 5 22:52:12 UTC 2023


> ```
>
> These two solutions should compile to approximately the same 
> runtime code, with optimizations enabled. So, it's really down 
> to personal preference; the former is more explicit about what 
> the computer is to do, while the latter is more concise.

Thanks! Works great.




More information about the Digitalmars-d-learn mailing list