component5

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

Since Kotlin

1.0

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

Since Kotlin

1.0

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