EitherSyntaxOps<A> extension

Operations for any value to lift it into an Either.

on
  • A

Methods

asLeft<B>() Either<A, B>
Creates a Left instance with this value.
asRight<B>() Either<B, A>
Creates a Right instance with this value.