arrow-core-data / arrow.typeclasses / Foldable / foldMap

foldMap

open fun <A, B> Kind<F, A>.foldMap(MN: Monoid<B>, f: (A) -> B): B

Fold implemented by mapping A values into B and then combining them using the given Monoid instance.

Do you like Arrow?

Arrow Org
<