Skip to content

Instantly share code, notes, and snippets.

@ShinNoNoir
Last active December 11, 2015 20:09
Show Gist options
  • Save ShinNoNoir/4653781 to your computer and use it in GitHub Desktop.
Save ShinNoNoir/4653781 to your computer and use it in GitHub Desktop.
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