Skip to content

Instantly share code, notes, and snippets.

@snowmantw
Created April 11, 2012 01:11
Show Gist options
  • Save snowmantw/2356090 to your computer and use it in GitHub Desktop.
Save snowmantw/2356090 to your computer and use it in GitHub Desktop.
# truly curried function !
add = (x)->(y)-> x()+y()
add4 = add(()->4)
console.log(add(()->4)(()->6))
console.log(add4(()->6))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment