# File lib/core/facets/enumerable/map_with_index.rb, line 10 def map_with_index r = [] each_with_index do |e, i| r << yield(e, i) end r end