ona/debug/app.ona
kayomn 88ff2a64b6
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Make arguments read-only
2023-11-04 13:41:39 +00:00

38 lines
446 B
Plaintext

let printer = lambda (pfx):
return lambda (msg):
@print(pfx)
@print(msg)
end
end
let pr = printer("This is a func call")
var i = 0
pr("test")
while i < 5:
pr("hello, world")
i = i + 1
end
if i > 6:
pr("`i` greater than `6`")
elif i == 4:
pr("`i` is equal to `4`")
else:
pr("i'unno")
end
let pr2 = printer("this is a final closure")
pr2("goodbye")
return {
.title = "Game",
.width = 1280,
.height = 800,
.tick_rate = 60,
}