about summary refs log tree commit diff
path: root/users/grfn/achilles/ach/functions.ach
diff options
context:
space:
mode:
Diffstat (limited to 'users/grfn/achilles/ach/functions.ach')
-rw-r--r--users/grfn/achilles/ach/functions.ach8
1 files changed, 8 insertions, 0 deletions
diff --git a/users/grfn/achilles/ach/functions.ach b/users/grfn/achilles/ach/functions.ach
new file mode 100644
index 000000000000..dc6e7a1f3e34
--- /dev/null
+++ b/users/grfn/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