arrow-core-data / arrow.typeclasses / Zip

Zip

interface Zip<F> : Semialign<F>

Zip is a typeclass that extends a Functor by providing a zip operation that takes the intersection of non-uniform shapes.

Functions

zip Combines to structures by taking the intersection of their shapes and using Tuple2 to hold the elements.open fun <A, B> Kind<F, A>.zip(other: Kind<F, B>): Kind<F, Tuple2<A, B>>
zipWith Combines to structures by taking the intersection of their shapes and combining the elements with the given function.open fun <A, B, C> Kind<F, A>.zipWith(other: Kind<F, B>, f: (A, B) -> C): Kind<F, C>

Inheritors

Repeat Repeat extends Zip by providing a repeat structure.interface Repeat<F> : Zip<F>
Unzip The Unzip typeclass extends Zip by providing an inverse operation to zip.interface Unzip<F> : Zip<F>

Do you like Arrow?

Arrow Org
<