MutableSet
A generic unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
Since Kotlin
1.0Parameters
the type of elements contained in the set. The mutable set is invariant in its element type.
Functions
Adds all of the elements of the specified collection to this collection.
Checks if all elements in the specified collection are contained in this collection.
Returns an iterator over the elements of this object.
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.
Returns a typed array containing all of the elements of this collection.