March 2012
Intermediate to advanced
384 pages
8h 36m
English
Topics in This Chapter ![]()
• 4.1 Constructing a Map — page 41
• 4.2 Accessing Map Values — page 42
• 4.3 Updating Map Values — page 43
• 4.4 Iterating over Maps — page 43
• 4.6 Interoperating with Java — page 44
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 ...
Read now
Unlock full access