Optimize mapping keys and values?
Open
feature-request
Map
- Dominant language
- Haskell
- Stars
- 355
- Forks
- 194
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 4
Description
For `Data.Map`, at least, it should be pretty easy to fuse `mapKeysMonotonic` with `map`, and probably even with `mapMaybeWithKey`. For `mapKeys` more generally, we might want to take another look at combos with list operations. For example, `toList . mapMaybeWithKey f` could be rewritten to convert to a list first and then `mapMaybe`.
Contributor guide
Assessment
This issue has not been assessed yet.