mapFirst<TN> method

Tuple2<TN, T2> mapFirst<TN>(
  1. TN f(
    1. T1 first
    )
)

Change type of first value of the Tuple from T1 to TN using f.

Implementation

Tuple2<TN, T2> mapFirst<TN>(TN Function(T1 first) f) =>
    Tuple2(f(_value1), _value2);