Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Data.Zip
Synopsis
- newtype T (f :: Type -> Type) a = Cons {
- decons :: f a
- transposeClip :: (Traversable f, Zip g, Repeat g) => f (g a) -> g (f a)
Documentation
newtype T (f :: Type -> Type) a Source #
Wrap a container such that its Applicative instance is based on zip.
transposeClip :: (Traversable f, Zip g, Repeat g) => f (g a) -> g (f a) Source #
Always returns a rectangular list
by clipping all dimensions to the shortest slice.
Be aware that transpose [] == repeat []
.