Skip to content

Instantly share code, notes, and snippets.

@dhruvasagar
Created February 21, 2014 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhruvasagar/9131295 to your computer and use it in GitHub Desktop.
Save dhruvasagar/9131295 to your computer and use it in GitHub Desktop.
(function (f) {
return (function (g) {
return g(g);
})(function(h) {
return f(function () {
return (h(h)).apply(this, arguments);
});
});
})(function(f) {
return function (n) {
return n === 0 ? 1 : n * f(n-1);
};
})(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment