Hoogle Search
Within LTS Haskell 24.35 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
ifoldMap :: (FoldableWithIndex i f, Monoid m) => (i -> a -> m) -> f a -> moptics-core Optics.Indexed.Core Fold a container by mapping value to an arbitrary Monoid with access to the index i. When you don't need access to the index then foldMap is more flexible in what it accepts.
foldMap ≡ ifoldMap . const
ifoldMap' :: (FoldableWithIndex i f, Monoid m) => (i -> a -> m) -> f a -> moptics-core Optics.Indexed.Core A variant of ifoldMap that is strict in the accumulator. When you don't need access to the index then foldMap' is more flexible in what it accepts.
foldMap' ≡ ifoldMap' . const
imap :: FunctorWithIndex i f => (i -> a -> b) -> f a -> f boptics-core Optics.Indexed.Core Map with access to the index.
bimap :: forall a b c d (i :: k) . Bifunctor p => (a -> b) -> (c -> d) -> p i a c -> p i b doptics-core Optics.Internal.Bi No documentation available.
-
optics-core Optics.Internal.Bi No documentation available.
imapped__ :: (Mapping p, FunctorWithIndex i f) => Optic__ p j (i -> j) (f a) (f b) a boptics-core Optics.Internal.IxSetter Internal implementation of imapped.
ifoldMap :: (FoldableWithIndex i f, Monoid m) => (i -> a -> m) -> f a -> moptics-core Optics.IxFold Fold a container by mapping value to an arbitrary Monoid with access to the index i. When you don't need access to the index then foldMap is more flexible in what it accepts.
foldMap ≡ ifoldMap . const
ifoldMap' :: (FoldableWithIndex i f, Monoid m) => (i -> a -> m) -> f a -> moptics-core Optics.IxFold A variant of ifoldMap that is strict in the accumulator. When you don't need access to the index then foldMap' is more flexible in what it accepts.
foldMap' ≡ ifoldMap' . const
-
optics-core Optics.IxFold Fold with index via embedding into a monoid.
imap :: FunctorWithIndex i f => (i -> a -> b) -> f a -> f boptics-core Optics.IxSetter Map with access to the index.