1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
bobbylisp/examples/a.sial
2022-12-13 23:02:41 +07:00

16 lines
263 B
Plaintext

fun succ x = do
let one = 1
let y = x + one in y
end
fun double x = x * 2
fun main = do
let add = \x y -> x + y in
succ(34)
|> \x -> add(34, x)
|> \x -> println(x)
let result = add(34, 35)
println(result)
end