Returns the number of times an element belongs to the multiset.
21 22 23
# File 'lib/multiset.rb', line 21 def multiplicity(e) @hash[e] end