mirror of
https://github.com/lisk77/lambda.git
synced 2025-10-24 18:28:49 +00:00
feat: initial commit
This commit is contained in:
commit
0dd91da74f
17 changed files with 683 additions and 0 deletions
9
examples/booleans.lambda
Normal file
9
examples/booleans.lambda
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
true = \ x y . x;
|
||||
false = \ x y . y;
|
||||
|
||||
not = \ p . p false true;
|
||||
and = \ p q . p q p;
|
||||
or = \ p q . p p q;
|
||||
xor = \ p q . p ( not q ) q;
|
||||
|
||||
main = and true false;
|
||||
Loading…
Add table
Add a link
Reference in a new issue