component3

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

Returns 3rd element from the array.

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

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

Returns 3rd element from the list.

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