In the second part of the Kotlin Bootcamp, there is a section that says:
Unlike lists in Kotlin, which have mutable and immutable versions, there is no mutable version of an Array. Once you create an array, the size is fixed. You can't add or remove elements, except by copying to a new array.
But exactly on the next section, it says:
Note: With an array defined with val, you can't change which array the variable refers to, but you can still change the contents of the array.
In the second part of the Kotlin Bootcamp, there is a section that says:
But exactly on the next section, it says:
You can find it in this link.
codelab: kotlin-bootcamp