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