bimap<A1, B1> method
Implementation
@override
Either<A1, B1> bimap<A1, B1>({
required A1 Function(a) a,
required B1 Function(b) b,
}) =>
_self.visit<Either<A1, B1>>(
left: (v) => Left<A1, B1>(a(v)),
right: (v) => Right<A1, B1>(b(v)),
);