bimap<P, Q> method

$<P, Q> bimap<P, Q>(
  1. P f(
    1. T
    ),
  2. Q g(
    1. S
    )
)

apply function f on left value and g on right value and return tuple.

Implementation

$<P, Q> bimap<P, Q>(P Function(T) f, Q Function(S) g) => $(f($0), g($1));