Lambda expression
From Fresh Dictionary
[edit]
English
[edit]
Noun phrase
lambda expression
- An algebraic expression representing a function by binding one or more parameters to an expression which may contain those parameters.
[edit]
Examples
| Expression | Meaning |
|---|---|
| <math>\lambda x.1</math> | The constant value 1 |
| <math>\lambda x.x</math> | The identity |
| <math>\lambda x.x+1</math> | <math>f(x)=x+1</math> |
| <math>\lambda n.\lambda x.x+n</math> | <math>f(n) = g</math> where <math>g(x) = x+n</math> |