foldMap

fun <A, B> Iterable<A>.foldMap(MB: Monoid<B>, f: (A) -> B): B(source)
fun <A, B> Sequence<A>.foldMap(MB: Monoid<B>, f: (A) -> B): B(source)