diff options
Diffstat (limited to 'users/grfn/achilles/ach/functions.ach')
-rw-r--r-- | users/grfn/achilles/ach/functions.ach | 8 |
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 |