component4

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

Returns 4th element from the array.

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

Since Kotlin

1.0

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

Returns 4th element from the list.

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

Since Kotlin

1.0