component3

inline operator fun <T> Array<out T>.component3(): T
inline operator fun ByteArray.component3(): Byte
inline operator fun ShortArray.component3(): Short
inline operator fun IntArray.component3(): Int
inline operator fun LongArray.component3(): Long
inline operator fun FloatArray.component3(): Float
inline operator fun DoubleArray.component3(): Double
inline operator fun BooleanArray.component3(): Boolean
inline operator fun CharArray.component3(): Char

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.


inline 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.


inline operator fun UIntArray.component3(): UInt
inline operator fun ULongArray.component3(): ULong
inline operator fun UByteArray.component3(): UByte
inline 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.

Since Kotlin

1.3