This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 11.13, “How to Create Maps in Scala”
You want to use a mutable or immutable
Map in a Scala application.
To use an immutable map, you don’t need an import statement, just create a