haskpy.typeclasses.foldable.fold_map

fold_map(monoid, f, xs)[source]

(Foldable t, Monoid m) => Monoid -> (a -> m) -> t a -> m

The first argument is a class of the values inside the foldable structure. It must be given explicitly so empty structures can be handled without errors.