Fixed-point combinator
f x = y in general
f ω = ω then ω is a fixed point of f, such that
ω = f ω = f (f ω) = f (f (f ω)) = f (f ... (f ω) ...)
fix takes a function and returns its fixed point:
fix f = ω such that f ω = ω
fix f = f (fix f) = f (f ...f (fix f)...))
in λ-calculus that is the role of Y combinator:
Y f = ω
f ω = ω
-------
ω = f ω = f (f ω) = f (f (f ω)) = f (f ... (f ω) ...)
ω = Y f = f (Y f) = f (f (Y f)) = f (f ... (Y f) ...)TOC
Y combinator
Last updated