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

18 lines
257 B
Plaintext
Raw Normal View History

2022-12-14 00:00:16 -06:00
fun foo x = do
x
end
2022-12-13 23:50:02 -06:00
fun fac n = if n == 0 then 1 else n * fac(n - 1)
2022-12-13 10:02:41 -06:00
fun main = do
2022-12-14 00:32:02 -06:00
let succ = \x -> x + 1,
n = 34,
in
println(n + succ(n))
print("Hello ")
println("World!")
2022-12-14 00:00:16 -06:00
2022-12-14 00:32:02 -06:00
println(foo(1))
println(fac(5))
end