Kotlin and Immutable Collections?
Kotlin’s List from the standard library is readonly: interface List<out E> : Collection<E> (source) A generic ordered collection of elements. Methods in this interface support only read-only access to the list; read/write access is supported through the MutableList interface. Parameters E – the type of elements contained in the list. As mentioned, there is also … Read more