TraversalLaws
dev.constructive.eo.laws.TraversalLaws
Law equations for a Traversal[T[_], A] — Optic[T[A], T[A], A, A, MultiFocus[PSVec]].
The MultiFocus[PSVec] carrier carries the right ForgetfulFunctor instance to drive the modify-side laws.
Monocle's getAll / headOption laws are not restated here: EO's Optic.all (Monocle's getAll) is foldMap(List(_)) for every fold-capable carrier, pinned once by E2 allIsFoci in eo.FoldMapHomomorphismLaws, and headOption rides on the same foldMap.
Attributes
- Source
- TraversalLaws.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article