kotlin.collections.toMutableSet
toMutableSet
fun <T> Iterable<T>.toMutableSet(): MutableSet<T>
Returns a mutable set containing all distinct elements from the given collection.
The returned set preserves the element iteration order of the original collection.
fun <T> Array<out T>.toMutableSet(): MutableSet<T>
fun ByteArray.toMutableSet(): MutableSet<Byte>
fun ShortArray.toMutableSet(): MutableSet<Short>
登录查看完整内容