Ruby implementation of 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>
Multiset#map, Multiset#map_with, and so on are added. Be careful that new Multiset#map is NOT equal to conventional Multiset#map(=Enumerable#map)!!
Multiset#classify and Multiset#classify_with returns an instance of Multimap.
*This program is distributed under BSD license.
[Document]
Ver. 0.132
Ver. 0.2 Series
[Reverse reference] (Added on 2008/3/1)
For support, use this BBS: HHiro.net support BBS