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