MutableList
A generic ordered collection of elements that supports adding and removing elements.
Since Kotlin
1.0Parameters
the type of elements contained in the list. The mutable list is invariant in its element type.
Functions
Checks if all elements in the specified collection are contained in this collection.
Returns the index of the last occurrence of the specified element in the list, or -1 if the specified element is not contained in the list.
Returns a list iterator over the elements in this list (in proper sequence).
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified index.
Removes all of this collection's elements that are also contained in the specified collection.
Retains only the elements in this collection that are contained in the specified collection.
Properties
Extensions
Appends all elements that are instances of specified class to the given destination.
Sorts elements in the list in-place according to their natural sort order.
Sorts elements in the list in-place according to the order specified with comparator.
Returns a typed array containing all of the elements of this collection.