# File multiset.rb, line 606
  def |(other)
    ret = self.dup
    other.each_pair do |item, count|
      ret.renew_count(item, [self.count(item), count].max)
    end
    ret
  end