Skip to content

Instantly share code, notes, and snippets.

@arjans
arjans / gist:3259688
Created August 4, 2012 20:16 — forked from janewang/gist:3259652
Y Combinator vs. U Combinator vs. Typical Recursion
// Y combinator
function Y(f) {
return (
(function (x) {
return f(function (v) { return x(x)(v); }); })
(function (x) {
return f(function (v) { return x(x)(v); }); })
);
}