Partial function application (Currying)

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sat Jan 20 17:47:29 UTC 2024


Not really any other way to do it, create context (i.e. struct, or 
stack) and have a delegate point to both it and a patch function.

It'll be how partial is implemented.

https://dlang.org/phobos/std_functional.html#.partial


More information about the Digitalmars-d-learn mailing list