Hierarchy of collections in Scala

The hierarchical structure of Scala collections is easy to understand. When you start working with collections, it becomes easy to use any method that is already defined in a super trait, and for specific implementations you can define your own versions. The structure has been classified in three distinct categories, that is: root, mutable, and immutable. We've discussed the differences between them. To strengthen our discussion, let's take a look at the hierarchy of root package collections:

Root collection hierarchy

The preceding hierarchy is for collections in the root package. All the collections inherited ...

Get Learning Scala Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.