3 ms·
That's a right section[1] (i.e., a partial application in the second argument). There's no such thing as a right curry. [1] https://wiki.haskell.org/Section_of
by gmfawcett 9y ago
That's a right section[1] (i.e., a partial application in the second argument). There's no such thing as a right curry.
[1] https://wiki.haskell.org/Section_of_an_infix_operator https://wiki.haskell.org/Section_of_an_infix_operator
- javajosh 9y agoHaskell "sections" seem to be very specific to infix operators, so they don't apply. >There's no such thing as a right curry. Haha, well there is now!
- gmfawcett 9y agoIt's not Haskell-specific terminology, I've seen it used in other functional language contexts (some Scheme libraries, etc.). But I admit I couldn't find another reference to link to the term, at least not with a quick Web search. :) (It's still not currying, though! If you're providing partial arguments to an existing function, that's partial application; if you're transforming a multi-arg function into a single-arg, function-returning function, then it's currying!)