get
Returns the character of this string at the specified index.
If the index is out of bounds of this string, throws an IndexOutOfBoundsException except in Kotlin/JS where the behavior is unspecified, and in Kotlin/Wasm where a trap will be raised instead, unless -Xwasm-enable-array-range-checks
compiler flag was specified when linking an executable.
Since Kotlin
1.0Returns the character of this string at the specified index.
If the index is out of bounds of this string, the behavior is unspecified.
Since Kotlin
1.1Returns the character of this string at the specified index.
If the index is out of bounds of this string, throws an IndexOutOfBoundsException.
Since Kotlin
1.0Returns the character of this string at the specified index.
If the index is out of bounds of this string, throws an IndexOutOfBoundsException.
Since Kotlin
1.3Returns the character of this string at the specified index.
In Kotlin/Wasm, a trap will be raised if the index is out of bounds of this string, unless -Xwasm-enable-array-range-checks
compiler flag was specified when linking an executable. With -Xwasm-enable-array-range-checks
flag, IndexOutOfBoundsException will be thrown.
Since Kotlin
1.8Returns the character of this string at the specified index.
In Kotlin/Wasm, a trap will be raised if the index is out of bounds of this string, unless -Xwasm-enable-array-range-checks
compiler flag was specified when linking an executable. With -Xwasm-enable-array-range-checks
flag, IndexOutOfBoundsException will be thrown.