either<B> method

Decoder<Either<A, B>> either<B>(
  1. Decoder<B> decodeB
)

Implementation

Decoder<Either<A, B>> either<B>(Decoder<B> decodeB) =>
    map<Either<A, B>>(left).recoverWith(decodeB.map(right));