Last active
December 11, 2015 20:09
-
-
Save ShinNoNoir/4653781 to your computer and use it in GitHub Desktop.
A "solution" to http://cliffordbeshers.blogspot.co.uk/2013/01/when-is-programming-feature-helpful.html :p
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 flip(f) {return curry(function(y,x){return f(x)(y)})} | |
function curry(f) {return function(x){return function(y){return f(x,y)}}} | |
parseDec = flip(curry(parseInt))(10) | |
['10','10','10','10','10'].map(parseDec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment