component5

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

Returns 5th element from the array.

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

Common
JVM
JS
Native
1.0
operator fun <T> List<T>.component5(): T
(source)

Returns 5th element from the list.

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