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
7048facaa419b16b2bd6053563b5e691a064dffe
wren
/
test
/
list
/
map.wren
T
4 lines
78 B
Plaintext
Raw
Normal View
History
Unescape
Escape
chore: replace IO.write with IO.print and fix array spacing in map test
2014-02-15 06:34:30 +00:00
var a = [1, 2, 3]
feat: migrate all function literals from
fn
syntax to
new Fn
block syntax
2014-04-03 02:41:53 +00:00
var b = a.map {|x| x + 1 }
chore: replace IO.write with IO.print and fix array spacing in map test
2014-02-15 06:34:30 +00:00
IO.print(b) // expect: [2, 3, 4]
Reference in New Issue
Copy Permalink