@@ -301,6 +301,14 @@ catMaybes (Nothing::xs) = catMaybes xs
301301catMaybes ((Just j)::xs) with (catMaybes xs)
302302 | (_ ** tail) = (_ ** j::tail)
303303
304+range : Vect (Fin n) n
305+range =
306+ reverse range_
307+ where
308+ range_ : Vect (Fin n) n
309+ range_ {n=O} = Nil
310+ range_ {n=(S _)} = last :: map weaken range_
311+
304312--------------------------------------------------------------------------------
305313-- Proofs
306314--------------------------------------------------------------------------------