mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-27 13:32:56 +03:00
Merge pull request #3271 from chriszimmerman/GH-3114-lambda-calculus-associativity
[Lambda Calculus/en] - Closes #3114 - Fixes lambda calculus evaluation formula by fixing associativity
This commit is contained in:
commit
ed67bee58d
@ -55,7 +55,7 @@ Although lambda calculus traditionally supports only single parameter
|
|||||||
functions, we can create multi-parameter functions using a technique called
|
functions, we can create multi-parameter functions using a technique called
|
||||||
[currying](https://en.wikipedia.org/wiki/Currying).
|
[currying](https://en.wikipedia.org/wiki/Currying).
|
||||||
|
|
||||||
- `(λx.λy.λz.xyz)` is equivalent to `f(x, y, z) = x(y(z))`
|
- `(λx.λy.λz.xyz)` is equivalent to `f(x, y, z) = ((x y) z)`
|
||||||
|
|
||||||
Sometimes `λxy.<body>` is used interchangeably with: `λx.λy.<body>`
|
Sometimes `λxy.<body>` is used interchangeably with: `λx.λy.<body>`
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ Using `IF`, we can define the basic boolean logic operators:
|
|||||||
|
|
||||||
`a NOT b` is equivalent to: `λa.IF a F T`
|
`a NOT b` is equivalent to: `λa.IF a F T`
|
||||||
|
|
||||||
*Note: `IF a b c` is essentially saying: `IF(a(b(c)))`*
|
*Note: `IF a b c` is essentially saying: `IF((a b) c)`*
|
||||||
|
|
||||||
## Numbers:
|
## Numbers:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user