Skip to content

Instantly share code, notes, and snippets.

@ericmoritz
Last active August 29, 2015 14:20
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 ericmoritz/216c0efce059f445ba69 to your computer and use it in GitHub Desktop.
Save ericmoritz/216c0efce059f445ba69 to your computer and use it in GitHub Desktop.
export const add = x => y =>
x + y
console.log(
add(1)(2)
)
console.log(
[1, 2, 3].map(add(1))
)
add :: a -> a -> a
add x y = x + y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment