haskpy.typeclasses.foldable.fold

fold(monoid, xs)[source]

(Foldable t, Monoid m) => Monoid -> 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.