:: Monoid m => (a -> m) -> [a] -> m package:clash-prelude

Map each element of the structure to a monoid, and combine the results.