EitherOptics

class Object
trait Matchable
class Any
object all.type
object all.type
object either.type

Value members

Concrete methods

final def left[A, B]: Prism[Either[A, B], A]

extract the left element of an either using monomorphic Prism

extract the left element of an either using monomorphic Prism

final def leftP[A, B, C]: Prism_[Either[A, C], Either[B, C], A, B]

extract the left element of an either using polymorphic Prism_

extract the left element of an either using polymorphic Prism_

final def right[A, B]: Prism[Either[A, B], B]

extract the right element of an either using monomorphic Prism

extract the right element of an either using monomorphic Prism

final def rightP[A, B, C]: Prism_[Either[C, A], Either[C, B], A, B]

extract the right element of an either using polymorphic Prism_

extract the right element of an either using polymorphic Prism_

final def swapEither[A, B]: Iso[Either[A, B], Either[B, A]]

swap the elements of an Either

swap the elements of an Either