How to define delegate with needed parameters

Tim tim.oliver at tutanota.com
Thu Jan 14 01:53:30 UTC 2021


On Thursday, 14 January 2021 at 00:29:23 UTC, Paul Backus wrote:
> Easiest way is to use a lambda:
>
> doSomething(() => foo(q))

This worked perfectly, thank you for your timely response~


More information about the Digitalmars-d-learn mailing list