Skip to content

Instantly share code, notes, and snippets.

@honbin
Created February 29, 2012 08:09
Show Gist options
  • Select an option

  • Save honbin/1939071 to your computer and use it in GitHub Desktop.

Select an option

Save honbin/1939071 to your computer and use it in GitHub Desktop.
カリー化のお勉強
//sum(10)(10) → 20
function sum(x, y) {
return x + y;
}
funtion c_sum(x) {
return function(y) { return sum(x,y); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment