# File multiset.rb, line 537 def delete_with @items.each_pair do |item, count| @items.delete(item) if yield(item, count) end self end