component2
Returns 2nd element from the array.
If the size of this array is less than 2, throws an IndexOutOfBoundsException except in Kotlin/JS where the behavior is unspecified.
Since Kotlin
1.0Returns 2nd element from the list.
Throws an IndexOutOfBoundsException if the size of this list is less than 2.