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 Source #
Minimal complete definition
Methods
zipWith :: (a -> b -> c) -> f a -> f b -> f c Source #
zip :: f a -> f b -> f (a, b) Source #
Instances
Zip NonEmpty Source # | |
Zip IntMap Source # | |
Zip Seq Source # | |
Zip Tree Source # | |
Zip Vector Source # | |
Zip [] Source # | |
Zip m => Zip (IdentityT m) Source # | |
Defined in Data.ChunkedZip | |
Zip m => Zip (ReaderT e m) Source # | |
Defined in Data.ChunkedZip | |
Zip ((->) a) Source # | |
(Zip f, Zip g) => Zip (Compose f g) Source # | |
Defined in Data.ChunkedZip |
class Functor f => Zip3 (f :: Type -> Type) where Source #
Methods
zipWith3 :: (a -> b -> c -> d) -> f a -> f b -> f c -> f d Source #
zip3 :: f a -> f b -> f c -> f (a, b, c) Source #
Instances
Zip3 Seq Source # | |
Zip3 Vector Source # | |
Defined in Data.ChunkedZip Methods zipWith3 :: (a -> b -> c -> d) -> Vector a -> Vector b -> Vector c -> Vector d Source # zip3 :: Vector a -> Vector b -> Vector c -> Vector (a, b, c) Source # zap3 :: Vector (a -> b -> c) -> Vector a -> Vector b -> Vector c Source # unzip3 :: Vector (a, b, c) -> (Vector a, Vector b, Vector c) Source # | |
Zip3 [] Source # | |
class Functor f => Zip4 (f :: Type -> Type) where Source #
Methods
zipWith4 :: (a -> b -> c -> d -> e) -> f a -> f b -> f c -> f d -> f e Source #
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 d Source #
Instances
Zip4 Seq Source # | |
Defined in Data.ChunkedZip Methods zipWith4 :: (a -> b -> c -> d -> e) -> Seq a -> Seq b -> Seq c -> Seq d -> Seq e Source # zip4 :: Seq a -> Seq b -> Seq c -> Seq d -> Seq (a, b, c, d) Source # zap4 :: Seq (a -> b -> c -> d) -> Seq a -> Seq b -> Seq c -> Seq d Source # unzip4 :: Seq (a, b, c, d) -> (Seq a, Seq b, Seq c, Seq d) Source # | |
Zip4 Vector Source # | |
Defined in Data.ChunkedZip Methods zipWith4 :: (a -> b -> c -> d -> e) -> Vector a -> Vector b -> Vector c -> Vector d -> Vector e Source # zip4 :: Vector a -> Vector b -> Vector c -> Vector d -> Vector (a, b, c, d) Source # zap4 :: Vector (a -> b -> c -> d) -> Vector a -> Vector b -> Vector c -> Vector d Source # unzip4 :: Vector (a, b, c, d) -> (Vector a, Vector b, Vector c, Vector d) Source # | |
Zip4 [] Source # | |
class Functor f => Zip5 (f :: Type -> Type) where Source #
Methods
zipWith5 :: (a -> b -> c -> d -> e -> g) -> f a -> f b -> f c -> f d -> f e -> f g Source #
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 e Source #
unzip5 :: f (a, b, c, d, e) -> (f a, f b, f c, f d, f e) Source #
Instances
Zip5 Vector Source # | |
Defined in Data.ChunkedZip Methods zipWith5 :: (a -> b -> c -> d -> e -> g) -> Vector a -> Vector b -> Vector c -> Vector d -> Vector e -> Vector g Source # zip5 :: Vector a -> Vector b -> Vector c -> Vector d -> Vector e -> Vector (a, b, c, d, e) Source # zap5 :: Vector (a -> b -> c -> d -> e) -> Vector a -> Vector b -> Vector c -> Vector d -> Vector e Source # unzip5 :: Vector (a, b, c, d, e) -> (Vector a, Vector b, Vector c, Vector d, Vector e) Source # | |
Zip5 [] Source # | |
Defined in Data.ChunkedZip Methods zipWith5 :: (a -> b -> c -> d -> e -> g) -> [a] -> [b] -> [c] -> [d] -> [e] -> [g] Source # zip5 :: [a] -> [b] -> [c] -> [d] -> [e] -> [(a, b, c, d, e)] Source # zap5 :: [a -> b -> c -> d -> e] -> [a] -> [b] -> [c] -> [d] -> [e] Source # unzip5 :: [(a, b, c, d, e)] -> ([a], [b], [c], [d], [e]) Source # |
class Functor f => Zip6 (f :: Type -> Type) where Source #
Methods
zipWith6 :: (a -> b -> c -> d -> e -> g -> h) -> f a -> f b -> f c -> f d -> f e -> f g -> f h Source #
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 g Source #
unzip6 :: f (a, b, c, d, e, g) -> (f a, f b, f c, f d, f e, f g) Source #
Instances
Zip6 Vector Source # | |
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 Source # zip6 :: Vector a -> Vector b -> Vector c -> Vector d -> Vector e -> Vector g -> Vector (a, b, c, d, e, g) Source # zap6 :: Vector (a -> b -> c -> d -> e -> g) -> Vector a -> Vector b -> Vector c -> Vector d -> Vector e -> Vector g Source # unzip6 :: Vector (a, b, c, d, e, g) -> (Vector a, Vector b, Vector c, Vector d, Vector e, Vector g) Source # | |
Zip6 [] Source # | |
Defined in Data.ChunkedZip Methods zipWith6 :: (a -> b -> c -> d -> e -> g -> h) -> [a] -> [b] -> [c] -> [d] -> [e] -> [g] -> [h] Source # zip6 :: [a] -> [b] -> [c] -> [d] -> [e] -> [g] -> [(a, b, c, d, e, g)] Source # zap6 :: [a -> b -> c -> d -> e -> g] -> [a] -> [b] -> [c] -> [d] -> [e] -> [g] Source # unzip6 :: [(a, b, c, d, e, g)] -> ([a], [b], [c], [d], [e], [g]) Source # |
class Functor f => Zip7 (f :: Type -> Type) where Source #
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 Source #
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 h Source #
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 [] Source # | |
Defined in Data.ChunkedZip Methods zipWith7 :: (a -> b -> c -> d -> e -> g -> h -> i) -> [a] -> [b] -> [c] -> [d] -> [e] -> [g] -> [h] -> [i] Source # zip7 :: [a] -> [b] -> [c] -> [d] -> [e] -> [g] -> [h] -> [(a, b, c, d, e, g, h)] Source # zap7 :: [a -> b -> c -> d -> e -> g -> h] -> [a] -> [b] -> [c] -> [d] -> [e] -> [g] -> [h] Source # unzip7 :: [(a, b, c, d, e, g, h)] -> ([a], [b], [c], [d], [e], [g], [h]) Source # |