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.
Required Ruby Version
>= 0
Authors
H.Hiro(Maraigue)
Versions
- 0.5.3 April 28, 2017 (24.5 KB)
- 0.5.1 August 10, 2014 (24 KB)
- 0.5.0 May 15, 2014 (24 KB)
- 0.4.1 December 01, 2013 (24 KB)
- 0.4.0 August 15, 2012 (22.5 KB)