Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Synopsis
- newtype T f a = Cons {
- decons :: f a
- transposeClip :: (Traversable f, Zip g, Repeat g) => f (g a) -> g (f a)
Documentation
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 []
.