The Map Class

val states = Map(
    "AK" -> "Alaska",
    "IL" -> "Illinois",
    "KY" -> "Kentucky"
)
The Map Class → are a → Scala Collections.

Mutable Map

import scala.collection.mutable.Map
val states = collection.mutable.Map("AK" -> "Alaska")

Related concepts

The Map Class — Structure map

Clickable & Draggable!

The Map Class — Related pages: