non-empty-0.2: List-like structures with static restrictions on the number of elements

Safe HaskellNone

Data.Zip

Synopsis

Documentation

newtype T f a Source

Wrap a container such that its Applicative instance is based on zip.

Constructors

Cons 

Fields

decons :: f a
 

Instances

Functor f => Functor (T f) 
(Zip f, Repeat f) => Applicative (T f) 

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 [].