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
-
source
- 0.5.3 source April 28, 2017 (24.5 KB)
-
-
0.5.1
-
source
- 0.5.1 source August 10, 2014 (24 KB)
-
-
0.5.0
-
source
- 0.5.0 source May 15, 2014 (24 KB)
-
-
0.4.1
-
source
- 0.4.1 source December 01, 2013 (24 KB)
-
-
0.4.0
-
source
- 0.4.0 source August 15, 2012 (22.5 KB)
-