arrow-core-data / arrow.typeclasses / Unalign

Unalign

interface Unalign<F> : Semialign<F>

Unalign extends Semialign thereby supporting an inverse function to align: It splits a union shape into a tuple representing the component parts.

Functions

unalign splits a union into its component parts.abstract fun <A, B> unalign(ior: Kind<F, Ior<A, B>>): Tuple2<Kind<F, A>, Kind<F, B>>
unalignWith after applying the given function, splits the resulting union shaped structure into its components partsopen fun <A, B, C> unalignWith(c: Kind<F, C>, fa: (C) -> Ior<A, B>): Tuple2<Kind<F, A>, Kind<F, B>>

Do you like Arrow?

Arrow Org
<