Skip to content

doxavore/multimap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"}>

About

Ruby multimap implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 98.7%
  • C 1.3%