component5

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

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.


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

Returns 5th element from the list.

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


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

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.

Since Kotlin

1.3