toCharArray

fun Array<out Char>.toCharArray(): CharArray

Returns an array of Char containing all of the elements of this generic array.


fun Collection<Char>.toCharArray(): CharArray

Returns an array of Char containing all of the elements of this collection.