mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 14:18:42 +01:00
Cleanups for merging map method
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
var a = [1,2,3]
|
||||
var a = [1, 2, 3]
|
||||
var inc = fn (x) { return x + 1 }
|
||||
var b = a.map(inc)
|
||||
|
||||
IO.write(b) // expect: [2, 3, 4]
|
||||
IO.print(b) // expect: [2, 3, 4]
|
||||
|
||||
Reference in New Issue
Block a user