I am fairly new to Scala and am trying to understand the collections hierarchy. I see that there is a distinction between \'mutable\' and \'immutable\' collections, but I d
Immutable means unchangeable. val makes a reference unchangeable, which means you cannot assign a value to a val once it has been initialized. Immutable collections make the collection itself unchangeable not the reference to it. Each time you modify an immutable collection, another collection is produced instead of modifying the original collection in-place. Most collections have both immutable and mutable versions, but there are exceptions of course.