Ruby - Enumerable - each_with_index

  • + 0 comments

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