@@ -9,8 +9,13 @@ namespace Vect {
10infixr 7 ::
10infixr 7 ::
12+||| Vectors: Generic lists with explicit length in the type
12−%elim data Vect : Nat -> Type -> Type where
14+data Vect : Nat -> Type -> Type where
13 Nil : Vect Z a
16 Nil : Vect Z a
17+ ||| A non-empty vector of length `S n`, consisting of a head element and
18+ ||| the rest of the list, of length `n`.
14 (::) : (x : a) -> (xs : Vect n a) -> Vect (S n) a
19 (::) : (x : a) -> (xs : Vect n a) -> Vect (S n) a
16-- Hints for interactive editing
21-- Hints for interactive editing