class
class (Foldable1 f, FoldableWithIndex i f) => Foldable1WithIndex i (f :: Type -> Type) | f -> i whereA non-empty container that supports folding with an additional index.
Methods
ifoldMap1 :: Semigroup m => (i -> a -> m) -> f a -> mMap each element of the structure to a semigroup, and combine the results.
ifoldMap1' :: Semigroup m => (i -> a -> m) -> f a -> mA variant of ifoldMap1 that is strict in the accumulator.
ifoldrMap1 :: (i -> a -> b) -> (i -> a -> b -> b) -> f a -> bGeneralized
ifoldr1.ifoldlMap1' :: (i -> a -> b) -> (i -> b -> a -> b) -> f a -> bGeneralized
ifoldl1'.ifoldlMap1 :: (i -> a -> b) -> (i -> b -> a -> b) -> f a -> bGeneralized
ifoldl1.ifoldrMap1' :: (i -> a -> b) -> (i -> a -> b -> b) -> f a -> bGeneralized
ifoldr1'.
Instances1Foldable1WithIndex
Foldable1WithIndex Int NonEmptyDefined in indexed-traversable-0.1.4 · WithIndex