bimap<A1, B1> method

  1. @override
Either<A1, B1> bimap<A1, B1>({
  1. required A1 a(
    1. a
    ),
  2. required B1 b(
    1. b
    ),
})
inherited

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)),
    );