Implementing the Scala 2.13 collections
summary
Scala 2.13 ships a redesigned collections library that focuses on concrete implementation details: add IterableOnce for single-pass types and primitive-friendly stepper support to avoid boxing; implement an immutable, index-backed sequence (MySeq) and factories so map/filter return MySeq after refining the CC/C type parameters; wrap a Java HashMap to make MyMap and build an intMap plus a collision‑proof hash map using an ordering constraint; everything compiles and runs, with strict‑optimized traits and builders improving allocation and runtime performance.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 0:57IterableOnce
- 4:22ArraySeek
- 5:15Collection Types
- 8:24Index Seek
- 22:00Inheritance
- 28:33Nonstandard collections
- 33:09Collision proof maps
- 33:52Strict optimized maps
- 35:59Info Factory
- 37:01Built from and Factory
- 40:46Inmap Factory
- 42:02Summary
- 43:00QA








