Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function.prototype.curry = ->
- args = (v for __, v of arguments)
- return =>
- args2 = (v for __, v of arguments)
- @apply @, args.concat args2
- add = (x, y) -> x + y
- add3 = add.curry 3
- console.log add3 4
Add Comment
Please, Sign In to add comment