foldMap package:ghc

Fold the values of a SmallArray into a 'Monoid m' of choice
Fold the keys and values in the map using the given monoid, such that
foldMapWithKey f = fold . mapWithKey f
This can be an asymptotically faster than foldrWithKey or foldlWithKey for some monoids.
Monadic version of foldMap