Currying and composition
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jul 27 09:09:27 PDT 2014
Matt Soucy:
> So, in the next release std.functional.curry has been renamed
> to std.functional.partial:
>
> https://github.com/D-Programming-Language/phobos/pull/1979
Oh, good. (And the "sigh" by Andrei is cute).
> I was starting to work on a proper curry replacement,
Is its syntax usage similar to the one I've shown for Python?
func(1, 2, 3)
func(1, 2)(3)
func(1)(2, 3)
func(1)(2)(3)
Is it a good idea to also mix in the function composition
operator overloading?
Bye,
bearophile
More information about the Digitalmars-d
mailing list