RubyGems.org

multiset

0.4.0

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.

installgem install multiset -v 0.4.0
Authors

H.Hiro(Maraigue)

5,339 total downloads 3,304 for this version
Owners

3970495ae18c6a912920cac628166270

Gemfile
gem 'multiset', '~> 0.4.0'
Versions
  1. 0.4.1 December 1, 2013 (24 KB)
  2. 0.4.0 August 15, 2012 (22.5 KB)
  3. 0.3.0 March 24, 2011 (19.5 KB)
Development Dependencies
  1. hoe ~> 3.0
  2. rdoc ~> 3.10