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

Build curried functions

Build curried functions

4:50
We see what it means to curry a function, then walk through several examples of curried functions and their use cases.
Watch this lesson now
Avatar
egghead.io

We see what it means to curry a function, then walk through several examples of curried functions and their use cases.

Avatar
Leonid
const modulo = dvr => dvd => dvd % dvr

How can I flip this function? (flip(modulo) would be equal to dvd => dvr => dvd % dvr)

Avatar
Leonid

It can be:

const flip = fn => second => first => fn(first)(second);
In reply to Leonid
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?