mapFirst

fun <A1, A2, A1New> Pair<A1, A2>.mapFirst(transform: (A1) -> A1New): Pair<A1New, A2>

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

Since

2.0.0


fun <A1, A2, A3, A1New> Triple<A1, A2, A3>.mapFirst(transform: (A1) -> A1New): Triple<A1New, A2, A3>

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

Since

2.0.0