# File lib/core/facets/array/each_pair.rb, line 6 def each_pair #:yield: i = -1 each_value do |x| yield(i+=1, x) end end