Tag: enumerators
advanced patterns of `each_with_index` in Ruby when modifying the array inside the block