Created
January 20, 2017 01:29
-
-
Save adambene/451e3ed3bd884256fbbf8f1f71bf2bae to your computer and use it in GitHub Desktop.
Currying in JavaScript ES6 - higher order functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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