Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby multimap implementation

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 benchmarks
Octocat-spinner-32 ext
Octocat-spinner-32 extras
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 multimap.gemspec
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"}>
Something went wrong with that request. Please try again.