combineAll

fun <A, B> Iterable<Either<A, B>>.combineAll(MA: Monoid<A>, MB: Monoid<B>): Either<A, B>

Deprecated

This API is considered redundant. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer explicit fold instead

Replace with

import arrow.core.fold
import arrow.typeclasses.Monoid
fold(Monoid.either(MA, MB))

fun <A> Iterable<A>.combineAll(MA: Monoid<A>): A
fun <A> Sequence<A>.combineAll(MA: Monoid<A>): A
fun <E, A> Validated<E, A>.combineAll(MA: Monoid<A>): A

Deprecated

use fold instead

Replace with

import arrow.core.fold
fold(MA)

Deprecated

use fold instead

Replace with

import arrow.core.fold
import arrow.typeclasses.Monoid
fold(Monoid.option(MA))

fun <A> Option<A>.combineAll(MA: Monoid<A>): A

Deprecated

use getOrElse instead

Replace with

getOrElse { MA.empty() }

fun <K, A> Iterable<Map<K, A>>.combineAll(SG: Semigroup<A>): Map<K, A>

Deprecated

use fold instead

Replace with

import arrow.core.fold
import arrow.typeclasses.Monoid
fold(Monoid.map(SG))