# File lib/multimap.rb, line 356
  def replace(other)
    case other
    when Array
      @hash.replace(self.class[self.default, *other])
    when Hash
      @hash.replace(self.class[self.default, other])
    when self.class
      @hash.replace(other)
    else
      raise ArgumentError
    end
  end