Sign in Sign up
rubygems

multiset

Unlike ordinary set(see Ruby documentation for "set" library), multiset can contain two or more same items. Set[:a,:b,:c,:b,:b,:c] # => #<Set: {:b, :c, :a}> Multiset[:a,:b,:c,:b,:b,:c] # => #<Multiset:#3 :b, #2 :c, #1 :a> Multisets are typically used for counting elements and their appearances in collections.

Activity

Latest release
9y ago
Total releases
6
Cadence
~1.3 years
Last 12 months
0

Details

License
MIT
First release
Mar 24, 2011
Releases
Version Released
0.5.3 patch
0.5.1 patch
0.5.0 minor
0.4.1 patch
0.4.0 minor
0.3.0 initial