containers icon indicating copy to clipboard operation
containers copied to clipboard

Feature request: add traverseMaybe to IntMap

Open vmchale opened this issue 5 years ago • 1 comments

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.

vmchale avatar Oct 26 '20 18:10 vmchale

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.

sjakobi avatar Oct 27 '20 17:10 sjakobi