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

18 lines
257 B
Plaintext

fun foo x = do
x
end
fun fac n = if n == 0 then 1 else n * fac(n - 1)
fun main = do
let succ = \x -> x + 1,
n = 34,
in
println(n + succ(n))
print("Hello ")
println("World!")
println(foo(1))
println(fac(5))
end