Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adambene/451e3ed3bd884256fbbf8f1f71bf2bae to your computer and use it in GitHub Desktop.
Save adambene/451e3ed3bd884256fbbf8f1f71bf2bae to your computer and use it in GitHub Desktop.
Currying in JavaScript ES6 - higher order functions
curry = f => a => b => f(a, b)
uncurry = f => (a, b) => f(a)(b)
papply = (f, a) => b => f(a, b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment