1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
bobbylisp/example/69.hz

15 lines
258 B
Plaintext
Raw Normal View History

fun add2 (lhs: int) (rhs: int): int = do
2022-04-01 03:15:36 -05:00
return lhs + rhs
end
2022-03-15 19:36:39 -05:00
fun main: void = do
2022-04-01 03:15:36 -05:00
let result: int = add2(34, 35)
@write(result)
@write("\n")
if result == 69 then
2022-04-01 03:15:36 -05:00
@write("big cool")
else
2022-04-01 03:15:36 -05:00
@write("not cool")
end
end