core-ktx / androidx.util / android.util.Pair / component2

component2

inline operator fun <F, S> Pair<F, S>.component2(): S

Returns the second component of the pair.

This method allows to use destructuring declarations when working with pairs, for example:

val (first, second) = myPair