dev.constructive.eo.optics.Modify
See theModify companion class
object Modify
Constructor for Modify — write-only single-focus optic, backed by ModifyF. The caller applies a function at the focus but cannot read it back; useful when observation would leak information or when the focus is genuinely unreadable (e.g. inside a closure).
Modify.apply returns a concrete Modify, so a Modify composes with another Modify through the ordinary andThen (the fused Modify.andThen) — s1.andThen(s2).modify(f) == s1.modify(s2.modify(f)) — exactly as Iso / Lens / Getter compose via their own fused subclasses, bypassing the generic AssociativeFunctor[ModifyF] round-trip.
Attributes
- Companion
- class
- Source
- Modify.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Modify.type
Members list
In this article