bimap<C, D> method
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);