Chapter 20
Other Collection Types
Back in chapter 7 we talked about the most basic sequence collections in Scala, the Array and the List. Since then we have seen other similar types. These collections share a large number of different methods that we have used to great effect. The sequences are not the only type of collection though. The Scala collections library is far more extensive than what we have seen so far. In this chapter we will examine the inheritance hierarchy of the entire collections library and look at three other types of collections in detail.
20.1 The scala.collection Packages
At this point you have likely seen in the Application Programming Interface (API) that there are a number of packages that start with scala.collection ...
Get Introduction to the Art of Programming Using Scala now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.