Mastering Scala Basics: Collections
Scala collections systematically distinguish between mutable (scala.collection.mutable) and immutable (scala.collection.immutable) collections. A mutable collection can be updated or extended in place. This means you can change, add, or remove elements of a collection as a side effect. Immutable collections, by contrast, never change. You have still operations that simulate additions, removals, or updates, but those […]