dev.constructive.eo.data.Affine
See theAffine companion object
Carrier for the Optional family — sealed hierarchy: Affine.Miss (no focus; carries Fst[A]) and Affine.Hit (focus present; carries Snd[A] + B). Miss / Hit store fields directly (no Either / Tuple2 wrapper); match Miss(...) / Hit(...) or use fold for zero-alloc access.
At every constructor site A is a concrete Tuple2 (so Fst[A] / Snd[A] reduce); when carried through an Optic[…, Affine] existential, A is abstract and the match types stay inert.
Type parameters
- A
-
existential leftover tuple
- B
-
focus type
Attributes
- Companion
- object
- Source
- Affine.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
In this article