4 ms·
Surprisingly few attempts even seem to get over the bar of understanding what currying is, and why it isn't just partial application. Huh, what is the differe
by Varriount 3y ago
Surprisingly few attempts even seem to get over the bar of understanding what currying is, and why it isn't just partial application.
Huh, what is the difference between currying and partial application? I always thought the terms were interchangeable.
- 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.