diff options
| author | Paul Buetow <paul@buetow.org> | 2010-05-12 21:13:52 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2010-05-12 21:13:52 +0000 |
| commit | 5ab5de91eb0ae6ed9db78a2c8c47ec67f105e504 (patch) | |
| tree | 6e0347a5eafe1ad35da4f5e48d0489132d6bc00c /docs | |
| parent | 3e452b027838fb8114c226667dcab04c9121f61b (diff) | |
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/fype.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/fype.txt b/docs/fype.txt index 77ccdad..004652e 100644 --- a/docs/fype.txt +++ b/docs/fype.txt @@ -11,3 +11,21 @@ Examples: (λx.(λy.y)) ≡ λx.λy.y ≡ λx y.y ≡ true λx.λy.((x y) false) ≡ λx y.((x y) false) ≡ and +Syntax: + +(λx . (λy.x)) ≡ λx.λy.x ≡ λx y . x ≡ false +true: x y = x; + +(λx.(λy.y)) ≡ λx.λy.y ≡ λx y . y ≡ true +false: x y = y; + +λx.λy.((x y) false) ≡ λx y.((x y) false) ≡ and +and: x y = (x y) false; + +id: x = x; + +greet: x = say (~ "Hello " x); + + + + |
