2 ms·
> Huh, what is the difference between currying and partial application? Partial application (of one arg) takes a function that is of type: (a, b, c) -> d
by dragonwriter 3y ago
> Huh, what is the difference between currying and partial application?
Partial application (of one arg) takes a function that is of type:
(a, b, c) -> d
And makes it:
a -> (b, c) -> d
Currying makes it:
a -> b -> c -> d
Ruby’s Proc#curry does magic that mostly lets you pretend its either or something in between.