mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-14 23:58:03 +01:00
- Compile them as calls and definitions. - Use them for call(), clear(), run(), try(), and yield(). - Update the docs.
10 lines
112 B
Plaintext
10 lines
112 B
Plaintext
var f = null
|
|
|
|
new Fn {|param|
|
|
f = new Fn {
|
|
IO.print(param)
|
|
}
|
|
}.call("param")
|
|
|
|
f.call() // expect: param
|