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