OptionalLaws
dev.constructive.eo.laws.OptionalLaws
Law equations for an Optional[S, A] — Optic[S, S, A, A, Affine].
Ported from Monocle's monocle.law.OptionalLaws. getOption is recovered from EO's primitive to, whose Affine carrier is a Miss/Hit sum — fold projects out the focused value when present.
Attributes
- Source
- OptionalLaws.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article