clintval / bimap

A modern bidirectional map in Scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"

About

A modern bidirectional map in Scala

License:MIT License


Languages

Language:Scala 96.1%Language:Shell 3.9%