kotlin-stdlib / kotlin.text / toHashSet toHashSet Common JVM JS Native 1.0 fun CharSequence.toHashSet(): HashSet<Char> Returns a HashSet of all characters.