4 lines
134 B
Text
4 lines
134 B
Text
var arr = [1, 2, 3, 4, 5]
|
|
arr = arr.map { |x| x * 2 }.toList
|
|
arr = arr.map(Fn.new {|x| x / 2}).toList
|
|
arr.each {|x| System.print(x) }
|