Module
Data.Lens.Traversal
- Package
- purescript-profunctor-lenses
- Repository
- purescript-contrib/purescript-profunctor-lenses
This module defines functions for working with traversals.
#traversed Source
traversed :: forall b a t. Traversable t => Traversal (t a) (t b) a b
Create a Traversal
which traverses the elements of a Traversable
functor.
#traverseOf Source
traverseOf :: forall b a t s f. Applicative f => Optic (Star f) s t a b -> (a -> f b) -> s -> f t
Turn a pure profunctor Traversal
into a lens
-like Traversal
.
#sequenceOf Source
sequenceOf :: forall a t s f. Applicative f => Optic (Star f) s t (f a) a -> s -> f t
Sequence the foci of a Traversal
, pulling out an Applicative
effect.
If you do not need the result, see sequenceOf_
for Fold
s.
#elementsOf Source
elementsOf :: forall a t s i p. Wander p => IndexedTraversal i s t a a -> (i -> Boolean) -> IndexedOptic p i s t a a
Traverse elements of an IndexedTraversal
whose index satisfy a predicate.
#itraverseOf Source
itraverseOf :: forall b a t s i f. Applicative f => IndexedOptic (Star f) i s t a b -> (i -> a -> f b) -> s -> f t
Turn a pure profunctor IndexedTraversal
into a lens
-like IndexedTraversal
.
Re-exports from Data.Lens.Types
#Traversal' Source
type Traversal' s a = Traversal s s a a
- Modules
- Data.
Lens - Data.
Lens. At - Data.
Lens. Common - Data.
Lens. Fold - Data.
Lens. Fold. Partial - Data.
Lens. Getter - Data.
Lens. Grate - Data.
Lens. Index - Data.
Lens. Indexed - Data.
Lens. Internal. Exchange - Data.
Lens. Internal. Focusing - Data.
Lens. Internal. Forget - Data.
Lens. Internal. Grating - Data.
Lens. Internal. Indexed - Data.
Lens. Internal. Market - Data.
Lens. Internal. Re - Data.
Lens. Internal. Shop - Data.
Lens. Internal. Tagged - Data.
Lens. Internal. Wander - Data.
Lens. Internal. Zipping - Data.
Lens. Iso - Data.
Lens. Iso. Newtype - Data.
Lens. Lens - Data.
Lens. Lens. Product - Data.
Lens. Lens. Tuple - Data.
Lens. Lens. Unit - Data.
Lens. Lens. Void - Data.
Lens. Prism - Data.
Lens. Prism. Coproduct - Data.
Lens. Prism. Either - Data.
Lens. Prism. Maybe - Data.
Lens. Record - Data.
Lens. Setter - Data.
Lens. Traversal - Data.
Lens. Types - Data.
Lens. Zoom