mapWithIndex

A generalization of fmap, mapWithIndex takes a mapping function that also depends on the element's index, and applies it to every element in the sequence.
Mapping over an indexed list.
A generalization of fmap, mapWithIndex takes a mapping function that also depends on the element's index, and applies it to every element in the sequence.
hfoldMap with the membership of elements.
hfoldMapWithIndex with a constraint for each element.
hfoldMapWithIndex with a constraint for each element.
Map a function to every element of a product.
Map a function to every element of a product.
O(n). A generalization of foldMap1, foldMapWithIndex takes a folding function that also depends on the element's index, and applies it to every element in the sequence.