W3cubDocs

/Kotlin

component3

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

Returns 3rd element from the collection.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/component3.html