Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.ChunkedZip
Description
Various zipping and unzipping functions for chunked data structures.
Documentation
class Functor f => Zip (f :: Type -> Type) where #
Minimal complete definition
Methods
zipWith :: (a -> b -> c) -> f a -> f b -> f c #
zip :: f a -> f b -> f (a, b) #
class Functor f => Zip3 (f :: Type -> Type) where #
Methods
zipWith3 :: (a -> b -> c -> d) -> f a -> f b -> f c -> f d #
zip3 :: f a -> f b -> f c -> f (a, b, c) #
class Functor f => Zip4 (f :: Type -> Type) where #
Methods
zipWith4 :: (a -> b -> c -> d -> e) -> f a -> f b -> f c -> f d -> f e #
zip4 :: f a -> f b -> f c -> f d -> f (a, b, c, d) #
Instances
Zip4 Seq # | |
Defined in Data.ChunkedZip | |
Zip4 Vector # | |
Defined in Data.ChunkedZip Methods zipWith4 :: (a -> b -> c -> d -> e) -> Vector a -> Vector b -> Vector c -> Vector d -> Vector e # zip4 :: Vector a -> Vector b -> Vector c -> Vector d -> Vector (a, b, c, d) # zap4 :: Vector (a -> b -> c -> d) -> Vector a -> Vector b -> Vector c -> Vector d # unzip4 :: Vector (a, b, c, d) -> (Vector a, Vector b, Vector c, Vector d) # | |
Zip4 [] # | |
class Functor f => Zip5 (f :: Type -> Type) where #
Methods
zipWith5 :: (a -> b -> c -> d -> e -> g) -> f a -> f b -> f c -> f d -> f e -> f g #
zip5 :: f a -> f b -> f c -> f d -> f e -> f (a, b, c, d, e) #
zap5 :: f (a -> b -> c -> d -> e) -> f a -> f b -> f c -> f d -> f e #
Instances
Zip5 Vector # | |
Defined in Data.ChunkedZip Methods zipWith5 :: (a -> b -> c -> d -> e -> g) -> Vector a -> Vector b -> Vector c -> Vector d -> Vector e -> Vector g # zip5 :: Vector a -> Vector b -> Vector c -> Vector d -> Vector e -> Vector (a, b, c, d, e) # zap5 :: Vector (a -> b -> c -> d -> e) -> Vector a -> Vector b -> Vector c -> Vector d -> Vector e # unzip5 :: Vector (a, b, c, d, e) -> (Vector a, Vector b, Vector c, Vector d, Vector e) # | |
Zip5 [] # | |
Defined in Data.ChunkedZip |
class Functor f => Zip6 (f :: Type -> Type) where #
Methods
zipWith6 :: (a -> b -> c -> d -> e -> g -> h) -> f a -> f b -> f c -> f d -> f e -> f g -> f h #
zip6 :: f a -> f b -> f c -> f d -> f e -> f g -> f (a, b, c, d, e, g) #
zap6 :: f (a -> b -> c -> d -> e -> g) -> f a -> f b -> f c -> f d -> f e -> f g #
unzip6 :: f (a, b, c, d, e, g) -> (f a, f b, f c, f d, f e, f g) #
Instances
Zip6 Vector # | |
Defined in Data.ChunkedZip Methods zipWith6 :: (a -> b -> c -> d -> e -> g -> h) -> Vector a -> Vector b -> Vector c -> Vector d -> Vector e -> Vector g -> Vector h # zip6 :: Vector a -> Vector b -> Vector c -> Vector d -> Vector e -> Vector g -> Vector (a, b, c, d, e, g) # zap6 :: Vector (a -> b -> c -> d -> e -> g) -> Vector a -> Vector b -> Vector c -> Vector d -> Vector e -> Vector g # unzip6 :: Vector (a, b, c, d, e, g) -> (Vector a, Vector b, Vector c, Vector d, Vector e, Vector g) # | |
Zip6 [] # | |
Defined in Data.ChunkedZip Methods zipWith6 :: (a -> b -> c -> d -> e -> g -> h) -> [a] -> [b] -> [c] -> [d] -> [e] -> [g] -> [h] # zip6 :: [a] -> [b] -> [c] -> [d] -> [e] -> [g] -> [(a, b, c, d, e, g)] # zap6 :: [a -> b -> c -> d -> e -> g] -> [a] -> [b] -> [c] -> [d] -> [e] -> [g] # unzip6 :: [(a, b, c, d, e, g)] -> ([a], [b], [c], [d], [e], [g]) # |
class Functor f => Zip7 (f :: Type -> Type) where #
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 i #
zip7 :: f a -> f b -> f c -> f d -> f e -> f g -> f h -> f (a, b, c, d, e, g, h) #
zap7 :: f (a -> b -> c -> d -> e -> g -> h) -> f a -> f b -> f c -> f d -> f e -> f g -> f h #
unzip7 :: f (a, b, c, d, e, g, h) -> (f a, f b, f c, f d, f e, f g, f h) #
Instances
Zip7 [] # | |
Defined in Data.ChunkedZip Methods zipWith7 :: (a -> b -> c -> d -> e -> g -> h -> i) -> [a] -> [b] -> [c] -> [d] -> [e] -> [g] -> [h] -> [i] # zip7 :: [a] -> [b] -> [c] -> [d] -> [e] -> [g] -> [h] -> [(a, b, c, d, e, g, h)] # zap7 :: [a -> b -> c -> d -> e -> g -> h] -> [a] -> [b] -> [c] -> [d] -> [e] -> [g] -> [h] # unzip7 :: [(a, b, c, d, e, g, h)] -> ([a], [b], [c], [d], [e], [g], [h]) # |