either

oxygen.core.syntax.either
object either

Attributes

Experimental
true
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
either.type

Members list

Extensions

Extensions

extension [A](self: A)
inline def asLeft[B]: Either[A, B]
inline def asLeftNel[B]: EitherNel[A, B]
inline def asRight[B]: Either[B, A]
inline def asRightNel[B]: EitherNel[B, A]
extension [A, B](self: Either[A, B])
def leftMap[A2](f: A => A2): Either[A2, B]
extension [A](self: A)
def leftWhen[B](f: A => Boolean)(ifNot: B): Either[A, B]
def leftWhenF[B](f: A => Boolean)(ifNot: A => B): Either[A, B]
def rightWhen[B](f: A => Boolean)(ifNot: B): Either[B, A]
def rightWhenF[B](f: A => Boolean)(ifNot: A => B): Either[B, A]