# File multiset.rb, line 547
  def merge(other)
    ret = self.dup
    other.each_pair do |item, count|
      ret.add(item, count)
    end
    ret
  end