Open twhitehead opened 3 weeks ago
Just stumbled across the fact that, while both folded
and traversed
are present, mapped
is missing.
Not a big deal as, for profunctor lenses, it is just technically
mapped :: forall f a b. Functor f => Setter a b (f a) (f b)
mapped = map
Still maybe a good idea to throw it in for completeness?
Saves a few brain cycles when you reach for it and realize it isn't there. :grinning:
The library has
itraversed
to give anIndexedTraversal
for anyTraversableWithIndex
.It would be also nice to have
ifolded
andimapped
to give anIndexedSetter
for anyFunctorWithIndex
and anIndexedFold
for anyFoldableWithIndex
.This would introduce no additional dependencies as both
FoldableWithIndex
andFunctorWithIndex
are defined in the foldable-traversable package that is already depended on forTraversableWithIndex
.I'll submit a pull request shortly.