either<TL, TR> method

  1. @override
Either<TL, TR> either<TL, TR>(
  1. TL fnL(
    1. L left
    ),
  2. TR fnR(
    1. R right
    )
)
override

Transform values of Left and Right

Implementation

@override
Either<TL, TR> either<TL, TR>(
    TL Function(L left) fnL, TR Function(R right) fnR) {
  return Right<TL, TR>(fnR(value));
}