0 | module Data.Vect.Erased
3 | data Vect0 : Nat -> Type -> Type where
5 | (::) : (0 _ : a) -> (_ : Vect0 n a) -> Vect0 (S n) a
8 | Head : Vect0 (S n) a -> a
12 | Last : Vect0 (S n) a -> a
14 | Last (_ :: x :: ys) = Last (x :: ys)
17 | zip : Vect0 n a -> Vect0 n b -> Vect0 n (a, b)
19 | zip (x :: z) (y :: w) = (x, y) :: zip z w
23 | pairUp : Vect0 (S n) a -> Vect0 n (a, a)
25 | pairUp (x :: y :: xs) = (x, y) :: pairUp (y :: xs)
27 | namespace Quantifiers
29 | data All0 : (p : a -> Type) -> Vect0 n a -> Type where
31 | (::) : {0 x : a} -> (_ : p x) -> (_ : All0 p xs) -> All0 p (x :: xs)