The library has itraversed to give an IndexedTraversal for any TraversableWithIndex.
It would be also nice to have ifolded and imapped to give an IndexedSetter for any FunctorWithIndex and an IndexedFold for any FoldableWithIndex.
This would introduce no additional dependencies as both FoldableWithIndex and FunctorWithIndex are defined in the foldable-traversable package that is already depended on for TraversableWithIndex.
I'll submit a pull request shortly.
The library has
itraversedto give anIndexedTraversalfor anyTraversableWithIndex.It would be also nice to have
ifoldedandimappedto give anIndexedSetterfor anyFunctorWithIndexand anIndexedFoldfor anyFoldableWithIndex.This would introduce no additional dependencies as both
FoldableWithIndexandFunctorWithIndexare defined in the foldable-traversable package that is already depended on forTraversableWithIndex.I'll submit a pull request shortly.