term | definition | diagram | alternative |
I/1 | λx.x |
| |
K/#1 | λx.λy.x |
| |
#0/0 | λx.λy.y |
| |
S | λx.λy.λz.(x z)(y z) |
|
|
Y | λf.(λx.x x)(λx.f(x x)) |
|
|
2 | λf.λx.f(f x) |
|
|
3 | λf.λx.f(f(f x)) |
|
|
4 | λf.λx.f(f(f(f x))) |
|
|
pred | λn.λf.λx.n(λg.λh.h(g f))(λu.x)(λu.u) |
|
|
fac | λn.λf.n(λf.λn.n(f(λf.λx.n f(f x))))(λx.f)(λx.x) |
|
|
fib | λn.λf.n(λc.λa.λb.c b(λx.a (b x)))(λx.λy.x)(λx.x)f |
|
|
Ω | (λx.x x)(λx.x x) |
|
|
}
{{hide}
{def block
div {@ style="display:inline-block; width:570px; vertical-align:top; padding:5px; "}}
{def PATH https://tromp.github.io/img/cl}
}
{style
body { background:#444; }
#page_frame { border:0; background:#444; width:600px; margin-left:0; }
#page_content { background:transparent; color:#fff; border:0; width:5400px; box-shadow:0 0 0; font-family:papyrus, optima; }
.page_menu { background:transparent; color:#fff; }
a { color:#f80; }
pre { box-shadow:0 0 8px #000; padding:5px; background:#444; color:#fff; font:normal 1.0em courier; }
b { color:cyan; }
h1 { font-size:4.0em; margin-left:0; }
h2 { font-size:3.0em; }
h3 { font-size:1.5em; }
table {background:#fff; color:#000; }
a[href^="https://"]:after { content: " ➚"; }
}
{script
LAMBDATALK.DICT['shiftl'] = function () {
var args = arguments[0].trim().split(' ');
return args[0] << args[1]
};
LAMBDATALK.DICT['shiftr'] = function () {
var args = arguments[0].trim().split(' ');
return args[0] >> args[1]
};
LAMBDATALK.DICT['even'] = function () {
var args = arguments[0].trim(); //.split(' ');
return /^-?\d*[02468]$/.test(args)
};
LAMBDATALK.DICT['odd'] = function () {
var args = arguments[0].trim(); //.split(' ');
return /^-?\d*[13579]$/.test(args)
};
}