mapOrAccumulate

open fun <A, B> Iterable<A>.mapOrAccumulate(semigroup: Semigroup<@UnsafeVariance R>, block: Raise<R>.(A) -> B): List<B>

Accumulate the errors obtained by executing the block over every element of this using the given semigroup.