kotlin-stdlib / kotlin.sequences / toHashSet toHashSet Common JVM JS Native 1.0 fun <T> Sequence<T>.toHashSet(): HashSet<T> Returns a HashSet of all elements. The operation is terminal.