arrow-core / arrow.core.extensions.list.monadLogic / kotlin.collections.List

Extensions for kotlin.collections.List

ifThen fun <A, B> List<A>.~~ifThen~~(arg1: List<B>, arg2: (A) -> Kind<ForListK, B>): List<B>
interleave fun <A> List<A>.~~interleave~~(arg1: List<A>): List<A>
once fun <A> List<A>.~~once~~(): List<A>
splitM fun <A> List<A>.~~splitM~~(): List<Option<Tuple2<Kind<ForListK, A>, A>>>
unweave fun <A, B> List<A>.~~unweave~~(arg1: (A) -> Kind<ForListK, B>): List<B>
voidIfValue fun <A> List<A>.~~voidIfValue~~(): List<Unit>

Do you like Arrow?

Arrow Org
<