Skip to content

Instantly share code, notes, and snippets.

@nilz3ro
Created July 14, 2016 02:01
Show Gist options
  • Save nilz3ro/c08e80b74b1468306c777657d4947d7d to your computer and use it in GitHub Desktop.
Save nilz3ro/c08e80b74b1468306c777657d4947d7d to your computer and use it in GitHub Desktop.
lambda expressions / currying in es6
((n) => ((y) => y*n))
// [Function]
((n) => ((y) => y*n))(9)
// [Function]
((n) => ((y) => y*n))(9)(3)
// 27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment