arrow-core-data / arrow.core / unzip

unzip

fun <A, B> NonEmptyList<Pair<A, B>>.unzip(): Pair<NonEmptyList<A>, NonEmptyList<B>> fun <A, B, C> NonEmptyList<C>.unzip(f: (C) -> Pair<A, B>): Pair<NonEmptyList<A>, NonEmptyList<B>> fun <A, B> Option<Pair<A, B>>.unzip(): Pair<Option<A>, Option<B>> inline fun <A, B, C> Option<C>.unzip(f: (C) -> Pair<A, B>): Pair<Option<A>, Option<B>>

Do you like Arrow?

Arrow Org
<