containers
containers copied to clipboard
Feature request: add traverseMaybe to IntMap
traverseMaybeWithKey is lovely + useful, but there's no traverseMaybe! It's not hard to work around, but such a function in the API would be nice.
We'd have to add 4 versions of this function (for IntMap and Map, both in strict and lazy variants). Since this omission is so trivial to work around, I feel the incurred costs would be disproportionate.
OTOH we do have "without key" variants for mapMaybe and mapEither and a bunch of similar functions…
I still feel about -1/2 on this proposal.