toMutableSet

Common
JVM
JS
Native
1.0
fun <T> Sequence<T>.toMutableSet(): MutableSet<T>

Returns a mutable set containing all distinct elements from the given sequence.

The returned set preserves the element iteration order of the original sequence.

The operation is terminal.