Returns a character at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this char sequence.
Since Kotlin
1.0Samples
import kotlin.test.*
fun main() {
val list = listOf(1, 2, 3)
println(list.elementAt(0))
println(list.elementAt(2))
val emptyList = emptyList<Int>()
}
Target: JVMRunning on v.2.1.20
Returns a character at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this char sequence.
Since Kotlin
1.1Samples
import kotlin.test.*
fun main() {
val list = listOf(1, 2, 3)
println(list.elementAt(0))
println(list.elementAt(2))
val emptyList = emptyList<Int>()
}
Target: JVMRunning on v.2.1.20
Returns a character at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this char sequence.
Since Kotlin
1.0Samples
import kotlin.test.*
fun main() {
val list = listOf(1, 2, 3)
println(list.elementAt(0))
println(list.elementAt(2))
val emptyList = emptyList<Int>()
}
Target: JVMRunning on v.2.1.20
Returns a character at the given index or throws an IndexOutOfBoundsException if the index is out of bounds of this char sequence.
Since Kotlin
1.3Samples
import kotlin.test.*
fun main() {
val list = listOf(1, 2, 3)
println(list.elementAt(0))
println(list.elementAt(2))
val emptyList = emptyList<Int>()
}
Target: JVMRunning on v.2.1.20