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/ Sat Nov 28 14:56:08 -0800 2009 update graphing example to work with ruby-graph... [josh]
directory lib/ Sun Dec 06 11:33:02 -0800 2009 better multimap examples [josh]
file multimap.gemspec Sun Dec 06 11:33:02 -0800 2009 better multimap examples [josh]
directory spec/ Sun Nov 29 12:10:43 -0800 2009 doc and fix delete_if [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"}>