concatToString
@ExperimentalStdlibApi fun CharArray.concatToString(): Stringfun CharArray.concatToString(): StringConcatenates characters in this CharArray into a String.
@ExperimentalStdlibApi fun CharArray.concatToString(
startIndex: Int = 0,
endIndex: Int = this.size
): Stringfun CharArray.concatToString(
startIndex: Int,
endIndex: Int
): StringConcatenates characters in this CharArray or its subrange into a String.
Parameters
startIndex - the beginning (inclusive) of the subrange of characters, 0 by default.
endIndex - the end (exclusive) of the subrange of characters, size of this array by default.
Exceptions
IndexOutOfBoundsException - if startIndex is less than zero or endIndex is greater than the size of this array.
IllegalArgumentException - if startIndex is greater than endIndex.