mirror of
https://github.com/leafo/moonscript.git
synced 2024-12-24 01:04:21 +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
|
|
|