map! evaluates twice

Antonio antonio at abrevia.net
Sun Jun 12 20:41:24 UTC 2022


On Friday, 10 June 2022 at 20:47:14 UTC, Steven Schveighoffer 
wrote:
> On 6/10/22 4:33 PM, Antonio wrote:
> ...
>
> `map` calls the lambda for each call to `front`. If you want a 
> cached version, use `cache`:

Thank you very much, Steve



More information about the Digitalmars-d-learn mailing list