ABSTRACT

Back in chapter 1 we talked about the most basic sequence collections in Scala, the Array and the List. These collections are subtypes of the Seq trait, and they share a large number of different methods that we have used to great effect. The sequences are not the only type of collection. The Scala collections library is far more extensive than 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.