@@ -64,7 +64,7 @@ fromList [] = []
64fromList (x::xs) = x :: fromList xs
64fromList (x::xs) = x :: fromList xs
66--------------------------------------------------------------------------------
66--------------------------------------------------------------------------------
67−-- Building bigger vectors
67+-- Building (bigger) vectors
68--------------------------------------------------------------------------------
68--------------------------------------------------------------------------------
@@ -72,6 +72,10 @@ total
72(++) [] ys = ys
72(++) [] ys = ys
73(++) (x::xs) ys = x :: xs ++ ys
73(++) (x::xs) ys = x :: xs ++ ys
75+replicate : (n : Nat) -> a -> Vect a n
77+replicate (S k) x = x :: replicate k x
75--------------------------------------------------------------------------------
79--------------------------------------------------------------------------------
77--------------------------------------------------------------------------------
81--------------------------------------------------------------------------------