October 2018
Intermediate to advanced
370 pages
9h 15m
English
This is the most powerful collection among all the lists in this hierarchy because it inherits all the functions from both sides – from the MutableCollection interface as well as the List interface, and it contains its own functions too. We can declare a mutable list interface by using the MutableList keyword.
Take a look at the following example:
val mutableListValues : MutableList<Int> = mutableListOf(1,2,3,4,5)
Take a look at the following diagram, which shows the MutableList interface:

Mutable list interfaces provide the following functions:
Read now
Unlock full access