Kotlin HashSet toCharArray()
Syntax & Examples


Syntax of HashSet.toCharArray()

The syntax of HashSet.toCharArray() extension function is:

fun Collection<Char>.toCharArray(): CharArray

This toCharArray() extension function of HashSet returns an array of Char containing all of the elements of this collection.