moonscript/spec/inputs/do.moon

28 lines
282 B
Plaintext
Raw Normal View History

2012-11-01 03:15:44 +00:00
do
print "hello"
print "world"
x = do
print "hello"
print "world"
y = do
things = "shhh"
-> "hello: " .. things
-> if something then do "yeah"
t = {
y: do
number = 100
(x) -> x + number
}
(y=(do
x = 10 + 2
x), k=do
"nothing") -> do
"uhhh"