This website requires JavaScript.
Explore
Help
Register
Sign In
retoor
/
wren
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
61674112c928294f6508b174707044c27553dae4
wren
/
test
/
closure
/
reference_closure_multiple_times.wren
T
14 lines
117 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Get closures working!
2013-12-04 07:43:50 -08:00
var f = null
{
var a = "a"
Convert all fns to block arg syntax.
2014-04-02 19:41:53 -07:00
f = new Fn {
Clean up text handling a bit:
2014-01-05 12:27:12 -08:00
IO.print(a)
IO.print(a)
Get closures working!
2013-12-04 07:43:50 -08:00
}
}
f.call
// expect: a
// expect: a
Reference in New Issue
Copy Permalink