# File lib/backports/1.8.7/enumerable.rb, line 236
    def to_a_with_optional_arguments(*args)
      return to_a_without_optional_arguments if args.empty?
      to_enum(:each, *args).to_a
    end