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.
We deliberately do NOT port getAll / headOption here — EO's Optic.all returns the whole container wrapped in a single-element list (cartesian-product semantics from traverse(List(_))), not the individual elements, so Monocle's phrasing of those laws would not be testing what the name suggests.
Attributes
- Source
- TraversalLaws.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article