CanGetOption

dev.constructive.eo.CanGetOption
See theCanGetOption companion object
trait CanGetOption[S, A]

Capability: an A may be read out of an S — the carrier-free surface of any optic whose carrier admits accessor.PartialAccessor (Prism, Optional, AffineFold).

Prefer this trait in consuming signatures; see CanGet for the doctrine and the one-optic- given-per-(S, A) coherence rule.

Attributes

Companion
object
Source
CanGetOption.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class MendTearPrism[S, T, A, B]
class Optional[S, T, A, B]
class PickFold[S, A]
class PickMendPrism[S, A, B]

Members list

Value members

Abstract methods

def getOption(s: S): Option[A]

Attributes

Source
CanGetOption.scala