bimap<C, D> method

Tuple2<C, D> bimap<C, D>(
  1. C mFirst(
    1. T1 a
    ),
  2. D mSecond(
    1. T2 b
    )
)

Change type of both values of the Tuple.

This is the same as mapFirst followed by mapSecond.

Same as mapBoth but using two distinct functions instead of just one.

Implementation

Tuple2<C, D> bimap<C, D>(C Function(T1 a) mFirst, D Function(T2 b) mSecond) =>
    mapFirst(mFirst).mapSecond(mSecond);