//arrow-core/arrow.core/foldMap

foldMap

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

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

Do you like Arrow?

Arrow Org
<