# File lib/backports/2.0.0/enumerator/lazy.rb, line 114
    def flat_map
      raise ArgumentError, "tried to call lazy flat_map without a block" unless block_given?
      Lazy.new(self) do |yielder, *values|
        result = yield(*values)
        if ary = Backports.is_array?(result) || (result.respond_to?(:each) && result.respond_to?(:force))
          ary.each{|x| yielder << x }
        else
          yielder << result
        end
      end
    end