aboutsummaryrefslogtreecommitdiffhomepage
path: root/std/Church.bruijn
diff options
context:
space:
mode:
authorMarvin Borner2022-08-13 10:53:23 +0200
committerMarvin Borner2022-08-13 11:48:03 +0200
commitcf76a2e33b708dd2bec72a782af214cbd792bb58 (patch)
tree754d02388abf1365c8282f46af2065095d43ae2f /std/Church.bruijn
parentcbc9a382e356951896a21f80f52e0e5b3e8c4e1f (diff)
Minor improvements
Diffstat (limited to 'std/Church.bruijn')
-rw-r--r--std/Church.bruijn14
1 files changed, 13 insertions, 1 deletions
diff --git a/std/Church.bruijn b/std/Church.bruijn
index 412938a..bba2784 100644
--- a/std/Church.bruijn
+++ b/std/Church.bruijn
@@ -1,7 +1,19 @@
# MIT License, Copyright (c) 2022 Marvin Borner
zero [[0]]
-succ [[[1 (2 1 0)]]]
+
+inc [[[1 (2 1 0)]]]
+
+++( inc
+
add [[[[3 1 (2 1 0)]]]]
+
+(+) add
+
mul [[[2 (1 0)]]]
+
+(*) mul
+
exp [[0 1]]
+
+(^) exp