Prism

vulcan.Prism
See thePrism companion object
sealed abstract class Prism[S, A]

Optic used for selecting a part of a coproduct type.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Prism[S, A]

Members list

Value members

Abstract methods

def getOption: S => Option[A]
Implicitly added by some

Attempts to select a coproduct part.

Attempts to select a coproduct part.

Attributes

def getOption: S => Option[A]

Attempts to select a coproduct part.

Attempts to select a coproduct part.

Attributes

def reverseGet: A => S
Implicitly added by some

Creates a coproduct from a coproduct part.

Creates a coproduct from a coproduct part.

Attributes

def reverseGet: A => S

Creates a coproduct from a coproduct part.

Creates a coproduct from a coproduct part.

Attributes

Concrete methods

def imap[S0](f: S0 => Option[S], g: S => S0): Prism[S0, A]
Implicitly added by some
def imap[S0](f: S0 => Option[S], g: S => S0): Prism[S0, A]