bobbylisp/example/simple.hlm

7 lines
162 B
Plaintext
Raw Normal View History

2023-06-29 13:07:52 +00:00
let add = fun (x Int, y Int) Int -> x + y;
let succ = fun (x) -> x + 1;
let mul = fun (x, y) -> x * y;
add(33, 34)
|> fun (x) -> succ(x)
|> fun (x) -> mul(x, 10)