Jump to content

Y combinator

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 129.128.137.xxx (talk) at 00:39, 7 November 2001. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Y combinator or Y constructor is a formula in lambda calculus which allows the definition of recursive functions in that formalism.


Church invented the Y combinator:


Y = (\h . (\x. h (x x)) (\x. h (x x)))


which has the cute property that it reproduces whatever argument we give it:


  Y A   ===> A (Y A)
        ===> A (A (Y A))
        ===> A (A (A (Y A)))
        ===> A (A (A (A (Y A))))
        ===> ...