component4

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

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.


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

Returns 4th element from the list.

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


inline operator fun UIntArray.component4(): UInt
inline operator fun ULongArray.component4(): ULong
inline operator fun UByteArray.component4(): UByte
inline operator fun UShortArray.component4(): UShort

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