This is an excerpt from the Scala Cookbook. (This is Recipe 10.1.)
Overview: The Scala collections hierarchy is very rich (both deep and wide), and understanding how it’s organized can be helpful when choosing a collection to solve a problem.
Figure 10-1, which shows the traits from which the
Vector class inherits, demonstrates some of the complexity of the Scala collections hierarchy.