component3

Common
JVM
JS
Native
1.0
operator fun <T> Array<out T>.component3(): T
operator fun ByteArray.component3(): Byte
operator fun ShortArray.component3(): Short
operator fun IntArray.component3(): Int
operator fun LongArray.component3(): Long
operator fun FloatArray.component3(): Float
operator fun DoubleArray.component3(): Double
operator fun BooleanArray.component3(): Boolean
operator fun CharArray.component3(): Char
@ExperimentalUnsignedTypes operator fun UIntArray.component3(): UInt
@ExperimentalUnsignedTypes operator fun ULongArray.component3(): ULong
@ExperimentalUnsignedTypes operator fun UByteArray.component3(): UByte
@ExperimentalUnsignedTypes operator fun UShortArray.component3(): UShort

Returns 3rd element from the array.

If the size of this array is less than 3, throws an IndexOutOfBoundsException except in Kotlin/JS where the behavior is unspecified.

Common
JVM
JS
Native
1.0
operator fun <T> List<T>.component3(): T

Returns 3rd element from the list.

Throws an IndexOutOfBoundsException if the size of this list is less than 3.