Skip to content

Instantly share code, notes, and snippets.

@Lily-La-Day
Created August 29, 2019 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lily-La-Day/ef4b1dce75225b7ee9db7466f17b5afa to your computer and use it in GitHub Desktop.
Save Lily-La-Day/ef4b1dce75225b7ee9db7466f17b5afa to your computer and use it in GitHub Desktop.
//curried
function add (a) {
return function (b) {
return a + b
}
}
add(3)(4)
const add3 = add(3);
add3(4)
//un-curried
function add (a, b) {
return a + b
}
add(3, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment