haskell / haskell/containers

Optimize mapping keys and values?

Open
#876 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.