mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 14:48:40 +01:00
11 lines
138 B
Plaintext
11 lines
138 B
Plaintext
var list = []
|
|
|
|
for (i in [1, 2, 3]) {
|
|
list.add(new Fn { IO.print(i) })
|
|
}
|
|
|
|
for (f in list) f.call
|
|
// expect: 1
|
|
// expect: 2
|
|
// expect: 3
|