Lambda (i.e. function) in itself is not very interesting. Here's the function in JavaScript:
What does this JavaScript program do? Nothing.
However, functions have the dangerous property of being invokable.
When called, the function can potentially do something (conditions apply):
authorize_nuclear_attack(launch_codes);
Hence, trivially, lambda can do something.
, C - , main.
Aadit - .
?
. (, -) (, -).
, .
, ( ), - (, ).
:
:
:
function id(x) {
return x;
}
( viz-a-viz recursion) -:
id(something);
- :
function boolean_true(then_branch, else_branch) {
return then_branch;
}
function boolean_false(then_branch, else_branch) {
return else_branch;
}
function if_statement(boolean_condition, then_branch, else_branch) {
return boolean_condition(then_branch, else_branch);
}
" " :
function dragon(dragon) {
return dragon(dragon);
}
dragon(dragon);
, , :

, , . .
( a.k.a.).
:
function substitution(f, g) {
return function (x) {
return f(x, g(x));
};
}
:
function zero(f, x) {
return x;
}
function add1(n) {
return function (f, x) {
return f(n(f, x));
};
}
function add(m, n) {
return function (f, x) {
return m(f, n(f, x));
};
}
, (.. ) (, -) (, ), , C Java.
- .
, - - (.. , , , , -).
, ( ), .
- , , ( ). " P P ?"
In other words, it is impossible to write a function Hsuch that H(P) = trueif it Pstops at all inputs, H(P) = falseotherwise. If you manage to write a function H, then it will always be incorrect for the following program:function P(x) {
return H(P) ? P(x) : x;
}
If he Hthinks he Palways stops, then he Pgoes into an endless cycle.
If he Hbelieves that he Pdoes not always stop, he always stops.
What are some uses not covered by lambda?
, -, - . , , , , -.
( , ). -, . .
, C Java, . , Haskell OCaml, . - , . , .