mapSecond

fun <A1, A2, A2New> Pair<A1, A2>.mapSecond(transform: (A2) -> A2New): Pair<A1, A2New>

Maps Pair.second with the given transform function and returns a new Pair.

Since

2.0.0


fun <A1, A2, A3, A2New> Triple<A1, A2, A3>.mapSecond(transform: (A2) -> A2New): Triple<A1, A2New, A3>

Maps Triple.second with the given transform function and returns a new Triple.

Since

2.0.0