component3

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

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

inline operator fun <T> List<T>.component3(): T(source)

Returns 3rd element from the list.

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

Since Kotlin

1.0