bobbylisp/example/simple.hlm

7 lines
172 B
Plaintext

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, 35)
|> fun (x) -> succ(x)
|> fun (x) -> mul(x, 10)