direct2either

dev.constructive.eo.compose.Composer.direct2either
object direct2either extends Composer[Direct, Either]

Express an Iso (or Getter) as a Prism — always takes the Right branch; Nothing in the Left slot so the miss branch is uninhabited.

Attributes

Source
Composer.scala
Graph
Supertypes
trait Composer[Direct, Either]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def to[S, T, A, B](o: Optic[S, T, A, B, Direct]): Optic[S, T, A, B, Either]

Attributes

Source
Composer.scala