var a = 1..3 var b = a.map {|x| x + 1 } IO.print(b) // expect: [2, 3, 4]