Skip to content
/ bimap Public

A modern bidirectional map in Scala

License

Notifications You must be signed in to change notification settings

clintval/bimap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bimap

Unit Tests Coverage Status Language

A modern bidirectional map in Scala.

Pacific City, Oregon

val map = BiMap(1 -> "1", 2 -> "2")
map.containsKey(1) shouldBe true
map.containsKey(2) shouldBe true
map.containsValue("1") shouldBe true
map.containsValue("2") shouldBe true
map should have size 2

If Mill is your build tool

ivyDeps ++ Agg(ivy"io.cvbio.collection.mutable::bimap::2.0.0")

If SBT is your build tool

libraryDependencies += "io.cvbio.collection.mutable" %% "bimap" % "2.0.0"