chunked-data-0.1.0.1: Typeclasses for dealing with various chunked data representations

Safe HaskellNone

Data.ChunkedZip

Description

Various zipping and unzipping functions for chunked data structures.

Documentation

class Functor f => Zip f whereSource

Methods

zipWith :: (a -> b -> c) -> f a -> f b -> f cSource

zip :: f a -> f b -> f (a, b)Source

zap :: f (a -> b) -> f a -> f bSource

unzip :: f (a, b) -> (f a, f b)Source

Instances

Zip [] 
Zip Tree 
Zip Seq 
Zip IntMap 
Zip NonEmpty 
Zip Vector 
Zip ((->) a) 
Zip m => Zip (IdentityT m) 
Zip m => Zip (ReaderT e m) 
(Zip f, Zip g) => Zip (Compose f g) 

class Functor f => Zip3 f whereSource

Methods

zipWith3 :: (a -> b -> c -> d) -> f a -> f b -> f c -> f dSource

zip3 :: f a -> f b -> f c -> f (a, b, c)Source

zap3 :: f (a -> b -> c) -> f a -> f b -> f cSource

unzip3 :: f (a, b, c) -> (f a, f b, f c)Source

Instances

class Functor f => Zip4 f whereSource

Methods

zipWith4 :: (a -> b -> c -> d -> e) -> f a -> f b -> f c -> f d -> f eSource

zip4 :: f a -> f b -> f c -> f d -> f (a, b, c, d)Source

zap4 :: f (a -> b -> c -> d) -> f a -> f b -> f c -> f dSource

unzip4 :: f (a, b, c, d) -> (f a, f b, f c, f d)Source

Instances

class Functor f => Zip5 f whereSource

Methods

zipWith5 :: (a -> b -> c -> d -> e -> g) -> f a -> f b -> f c -> f d -> f e -> f gSource

zip5 :: f a -> f b -> f c -> f d -> f e -> f (a, b, c, d, e)Source

zap5 :: f (a -> b -> c -> d -> e) -> f a -> f b -> f c -> f d -> f eSource

unzip5 :: f (a, b, c, d, e) -> (f a, f b, f c, f d, f e)Source

Instances

class Functor f => Zip6 f whereSource

Methods

zipWith6 :: (a -> b -> c -> d -> e -> g -> h) -> f a -> f b -> f c -> f d -> f e -> f g -> f hSource

zip6 :: f a -> f b -> f c -> f d -> f e -> f g -> f (a, b, c, d, e, g)Source

zap6 :: f (a -> b -> c -> d -> e -> g) -> f a -> f b -> f c -> f d -> f e -> f gSource

unzip6 :: f (a, b, c, d, e, g) -> (f a, f b, f c, f d, f e, f g)Source

Instances

class Functor f => Zip7 f whereSource

Methods

zipWith7 :: (a -> b -> c -> d -> e -> g -> h -> i) -> f a -> f b -> f c -> f d -> f e -> f g -> f h -> f iSource

zip7 :: f a -> f b -> f c -> f d -> f e -> f g -> f h -> f (a, b, c, d, e, g, h)Source

zap7 :: f (a -> b -> c -> d -> e -> g -> h) -> f a -> f b -> f c -> f d -> f e -> f g -> f hSource

unzip7 :: f (a, b, c, d, e, g, h) -> (f a, f b, f c, f d, f e, f g, f h)Source

Instances

Zip7 []