mapBoth<C, D> method

Tuple2<C, D> mapBoth<C, D>(
  1. Tuple2<C, D> f(
    1. T1 first,
    2. T2 second
    )
)

Change type of both values of the Tuple using f.

This is the same as mapFirst and mapSecond combined.

Implementation

Tuple2<C, D> mapBoth<C, D>(Tuple2<C, D> Function(T1 first, T2 second) f) =>
    f(_value1, _value2);