Chapter 4. Maps and Tuples
Topics in This Chapter
A classic programmer’s saying is, “If you can only have one data structure, make it a hash table.” Hash tables—or, more generally, maps—are among the most versatile data structures. As you will see in this chapter, Scala makes it particularly easy to use them.
Maps are collections of key/value pairs. Scala has a general ...