component1
Returns 1st element from the array.
inline operator fun <T> Array<out T>.component1(): T(source)
fun main() {
val numbers = arrayOf(1, 2, 3)
val first = numbers.component1()
println(first) // Output: 1
}
Returns 1st element from the array.
inline operator fun <T> Array<out T>.component1(): T(source)
fun main() {
val numbers = arrayOf(1, 2, 3)
val first = numbers.component1()
println(first) // Output: 1
}