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 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.