mirror of
https://github.com/leafo/moonscript.git
synced 2024-12-08 01:54:24 +00:00
17 lines
150 B
Plaintext
17 lines
150 B
Plaintext
|
|
|
|
x = {
|
|
val: 100
|
|
hello: =>
|
|
print @val
|
|
}
|
|
|
|
fn = x\val
|
|
print fn!
|
|
print x\val!
|
|
|
|
|
|
-- ... should be bubbled up anon functions
|
|
x = hello(...)\world
|
|
|