component4

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

Common
JVM
JS
Native
1.0
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.