arrow-core-data / arrow.typeclasses / Monoid

Monoid

interface Monoid<A> : Semigroup<A>, MonoidOf<A>

Functions

combineAll Combine an Collection of A values.open fun Collection<A>.combineAll(): A
Combine an array of A values.open fun combineAll(elems: List<A>): A
empty A zero value for this Aabstract fun empty(): A

Extension Functions

altFold fun <T, F, A> Kind<T, A>.altFold(AF: Alternative<F>, FT: Foldable<T>): Kind<F, A>
altSum fun <T, F, A> Kind<T, Kind<F, A>>.altSum(AF: Alternative<F>, FT: Foldable<T>): Kind<F, A>
fix fun <A> MonoidOf<A>.fix(): Monoid<A>

Type Class Hierarchy

Do you like Arrow?

Arrow Org
<