If I have arr = [1, 2, 3, 4] I know I can do the following...
arr = [1, 2, 3, 4]
> arr.each_slice(2) { |a, b| puts \"#{a}, #{b}\" } 1, 2 3, 4
...A
arr.each_slice(2).with_index { |(*a), i| ...
also note that the array, first parameter of the block, can be *arr