dev.constructive.eo.CanFold
See theCanFold companion object
Capability: the foci A visible in an S can be folded through a Monoid — the carrier-free surface of any optic whose carrier admits forgetful.ForgetfulFold (every readable family; the primary surface of Fold and Traversal).
foldMap is the kernel; headOption / length / exists / foci ride on it. foci is the carrier-free counterpart of the raw-optic all extension (which returns foci still inside their carrier, List[F[X, A]]). Prefer this trait in consuming signatures; see CanGet for the doctrine and the coherence rule.
Attributes
- Companion
- object
- Source
- CanFold.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Members list
In this article