foldMapWithKey f = fold . mapWithKey fThis can be an asymptotically faster than foldrWithKey or foldlWithKey for some monoids.
foldMapWithKey f = fold . mapWithKey fThis can be an asymptotically faster than foldrWithKey or foldlWithKey for some monoids.