Module

Data.Lens.Indexed

Package
purescript-profunctor-lenses
Repository
purescript-contrib/purescript-profunctor-lenses

#unIndex Source

unIndex :: forall b a t s i p. Profunctor p => IndexedOptic p i s t a b -> Optic p s t a b

Converts an IndexedOptic to an Optic by forgetting indices.

#asIndex Source

asIndex :: forall b a t s i p. Profunctor p => IndexedOptic p i s t a b -> Optic p s t i b

#iwander Source

iwander :: forall b a t s i. (forall f. Applicative f => (i -> a -> f b) -> s -> f t) -> IndexedTraversal i s t a b

Converts a lens-like indexed traversal to an IndexedTraversal.

#positions Source

positions :: forall b a t s. Traversal s t a b -> IndexedTraversal Int s t a b

Converts a Traversal to an IndexedTraversal by using the integer positions as indices.