Ruby - Enumerable - each_with_index

  • + 0 comments

    animals.drop(skip).each_with_index.map { |item, index| "#{index + skip }:#{item}" }