salign

fun <A> Iterable<A>.salign(SG: Semigroup<A>, other: Iterable<A>): Iterable<A>
fun <A> Sequence<A>.salign(SG: Semigroup<A>, other: Sequence<A>): Sequence<A>

aligns two structures and combine them with the given Semigroup.combine


fun <K, A> Map<K, A>.salign(SG: Semigroup<A>, other: Map<K, A>): Map<K, A>

aligns two structures and combine them with the given Semigroups '+'


fun <A> Option<A>.salign(SA: Semigroup<A>, b: Option<A>): Option<A>

Deprecated

This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using a simple fold, or when expression