halfsies in array ruby code example
Example 1: ruby array
ary = [1, "two", 3.0] #=> [1, "two", 3.0]
Example 2: * 16**index position in ruby
Array.new(3){ |index| index ** 2 }
# => [0, 1, 4]
ary = [1, "two", 3.0] #=> [1, "two", 3.0]
Array.new(3){ |index| index ** 2 }
# => [0, 1, 4]