component2

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

Returns the second component of the pair.

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

val (first, second) = myPair

@RequiresApi(value = 21)
inline operator fun Size.component2(): Int(source)

Returns "height", the second component of this Size.

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

val (w, h) = mySize

@RequiresApi(value = 21)
inline operator fun SizeF.component2(): Float(source)

Returns "height", the second component of this SizeF.

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

val (w, h) = mySize

inline operator fun SizeFCompat.component2(): Float(source)

Returns "height", the second component of this SizeFCompat.

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

val (w, h) = mySize