The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Curry and Uncurry Functions with Ramda

Curry and Uncurry Functions with Ramda

3:39
Most of the functions offered by the ramda library are curried by default. Functions you've created or that you've pulled in from another library may not be curried. Ramda's `curry` and `curryN` functions allow you to take a non-curried function and use it as a curried functions. In the case where you have a manually curried function and you want to just call it like a normal function, you can use `uncurryN` to get back a function that accepts all of the arguments at once.
Watch this lesson now
Avatar
egghead.io

Most of the functions offered by the ramda library are curried by default. Functions you've created or that you've pulled in from another library may not be curried. Ramda's curry and curryN functions allow you to take a non-curried function and use it as a curried functions. In the case where you have a manually curried function and you want to just call it like a normal function, you can use uncurryN to get back a function that accepts all of the arguments at once.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?