about summary refs log tree commit diff
path: root/users/aspen/achilles/ach/functions.ach
diff options
context:
space:
mode:
Diffstat (limited to 'users/aspen/achilles/ach/functions.ach')
-rw-r--r--users/aspen/achilles/ach/functions.ach8
1 files changed, 8 insertions, 0 deletions
diff --git a/users/aspen/achilles/ach/functions.ach b/users/aspen/achilles/ach/functions.ach
new file mode 100644
index 0000000000..dc6e7a1f3e
--- /dev/null
+++ b/users/aspen/achilles/ach/functions.ach
@@ -0,0 +1,8 @@
+ty id : fn a -> a
+fn id x = x
+
+ty plus : fn int -> int
+fn plus (x: int) (y: int) = x + y
+
+ty main : fn -> int
+fn main = plus (id 2) 7