public
Description: Ruby multimap implementation
Homepage: http://multimap.rubyforge.org/
Clone URL: git://github.com/josh/multimap.git
name age message
file .gitignore Mon May 25 18:33:36 -0700 2009 add rdoc rake task [josh]
file LICENSE Fri Nov 13 09:10:52 -0800 2009 rename MIT-LICENSE to LICENSE [josh]
file README.rdoc Sun Dec 06 11:33:02 -0800 2009 better multimap examples [josh]
file Rakefile Sun Dec 06 11:25:21 -0800 2009 move rdoc options into gemspec [josh]
directory benchmarks/ Tue May 26 09:47:57 -0700 2009 add multimap construction benchmark [josh]
directory ext/ Mon Nov 23 21:00:28 -0800 2009 fix native lookup ext to work on wrapped structure [josh]
directory extras/ Wed Dec 09 19:15:10 -0800 2009 use each_key cause we don't need the value [josh]
directory lib/ Thu Dec 24 14:09:54 -0800 2009 improve yaml support [josh]
file multimap.gemspec Thu Dec 24 14:11:19 -0800 2009 1.1.2 release [josh]
directory spec/ Thu Dec 24 14:09:54 -0800 2009 improve yaml support [josh]
README.rdoc

Multimap

A Ruby multimap implementation that also includes multiset and nested multimap implementations.

Example

  require 'multimap'

  map = Multimap.new
  map["a"] = 100
  map["b"] = 200
  map["a"] = 300

  map["a"]                              # -> [100, 300]
  map["b"]                              # -> [200]
  map.keys                              # -> #<Multiset: {"a", "a", "b"}>