# File lib/backports/1.8.7/enumerator/with_index.rb, line 5
      def with_index(offset = 0)
        return to_enum(:with_index, offset) unless block_given?
        each do |*args|
          yield args.size == 1 ? args[0] : args, offset
          offset += 1
        end
      end