Traversable
└── Iterable
├── Seq
│ ├── LinearSeq
│ │ ├── List
│ │ ├── LazyList
│ │ ├── Queue
│ │ └── Stack
│ ├── IndexedSeq
│ │ ├── Vector
│ │ ├── Range
│ │ ├── String (Implicit)
│ │ └── Array (Implicit)
│ ├── Mutable
│ │ ├── ArrayBuffer
│ │ ├── ArraySeq
│ │ └── StringBuilder
├── Set
│ ├── SortedSet
│ │ └── TreeSet
│ ├── HashSet
│ ├── BitSet
│ ├── Mutable
│ │ ├── HashSet
│ │ ├── LinkedHashSet
│ │ └── TreeSet
├── Map
│ ├── SortedMap
│ │ └── TreeMap
│ ├── HashMap
│ ├── ListMap
│ ├── Mutable
│ │ ├── HashMap
│ │ ├── LinkedHashMap
│ │ ├── TreeMap
│ │ └── WeakHashMap
- Traversable is the root of the collection hierarchy.
- Iterable extends Traversable and adds the
iterator method.
- Seq, Set, and Map are the main collection types, each with mutable and immutable versions.
- LinearSeq and IndexedSeq are subtypes of Seq for specific sequence implementations.
- SortedSet and SortedMap are specialized collections for sorted elements.