trait EitherSyntax
- Since:
2021-07-28
- Companion:
- object
class Object
trait Matchable
class Any
Extensions
Extensions
extension [A](a: A)
extension [A, B](either: Either[A, B])
extension [F[_], A, B](fOfEither: F[Either[A, B]])
extension [F[_], A, B](fOfEither: F[Either[A, B]])
inline def innerFilterOrElse[C >: A](f: B => Boolean, leftIfFalse: => C)(using F: Functor[F]): F[Either[C, B]]
inline def innerOrElse[C >: A, D >: B](ifLeft: => Either[C, D])(using F: Functor[F]): F[Either[C, D]]
inline def innerOrElseF[C >: A, D >: B](ifLeft: => F[Either[C, D]])(using F: Monad[F]): F[Either[C, D]]