arrow-core-data / arrow.typeclasses / Unzip


interface Unzip<F> : Zip<F>

The Unzip typeclass extends Zip by providing an inverse operation to zip.


unzip unzips the structure holding the resulting elements in an Tuple2open fun <A, B> Kind<F, Tuple2<A, B>>.unzip(): Tuple2<Kind<F, A>, Kind<F, B>>
unzipWith after applying the given function unzip the resulting structure into its fun <A, B, C> Kind<F, C>.unzipWith(fc: (C) -> Tuple2<A, B>): Tuple2<Kind<F, A>, Kind<F, B>>

Do you like Arrow?

Arrow Org