Last active
August 12, 2016 13:54
-
-
Save lukaszkorecki/3238021538bf7a6a7da2b56e406d5727 to your computer and use it in GitHub Desktop.
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
function add1(arg) { | |
return arg + 1; | |
} | |
function sub2(arg) { | |
return arg - 2 | |
} | |
function add1ToColl(coll) { | |
return coll.prototype.map.curry(add1); | |
} | |
function remove2FromColl(coll) { | |
return coll.prototype.map.curry(sub2); | |
} | |
add1ToColl(remove2FromColl([1,2,3]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment