Kotlin HashSet toMutableSet()
Syntax & Examples
Syntax of HashSet.toMutableSet()
The syntax of HashSet.toMutableSet() extension function is:
fun <T> Iterable<T>.toMutableSet(): MutableSet<T>
This toMutableSet() extension function of HashSet returns a new MutableSet containing all distinct elements from the given collection.