thraxil.org:

Reply to: My Own Javascript Y Combinator

Using JavaScript 1.8 expression closures, you can clean it up a bit:

function Y(X)    (function(procedure)       X(function(arg) procedure(procedure)(arg)))          (function(procedure)             X(function(arg) procedure(procedure)(arg)))


formatting is with Markdown syntax. Comments are not displayed until they are approved by a moderator. Moderators will not approve unless the comment contributes value to the discussion.

namerequired
emailrequired
url
remember info?