# File multiset.rb, line 306 def map ret = Multiset.new self.each do |item| ret << yield(item) end ret end