mapSecond<TN> method

Tuple2<T1, TN> mapSecond<TN>(
  1. TN f(
    1. T2 second
    )
)

Change type of second value of the Tuple from T2 to TN using f.

Implementation

Tuple2<T1, TN> mapSecond<TN>(TN Function(T2 second) f) =>
    Tuple2(_value1, f(_value2));