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

component1

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

Returns the first component of the pair.

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

val (first, second) = myPair