October 2018
Intermediate to advanced
370 pages
9h 15m
English
The mutableCollection interface extends two rich interfaces—the mutable iterable interface and the collection interface. It provides its own functions to add or remove elements. First, create a list of a mutable collection using the mutableCollection interface. Take a look at the following example:
val mutableCollectionList : MutableCollection <Int> = mutableListOf(1,2,3,4,5)
Take a look at the following diagram of the MutableCollection interface, which inherits both the MutableIterator interface and the Collection interface:

The MutableCollection interface provides the following functions:
Read now
Unlock full access