fold

open fun fold(M: Monoid<A>, source: S): A(source)

Fold using the given Monoid instance.