Ruby - Enumerable - each_with_index

  • + 1 comment
    animals.map.with_index{|v,i| "#{i}:#{v}"}.drop(skip)