@@ -99,6 +99,32 @@ unzip : Vect n (a, b) -> (Vect n a, Vect n b)
99unzip [] = ([], [])
99unzip [] = ([], [])
100unzip ((l, r)::xs) with (unzip xs)
100unzip ((l, r)::xs) with (unzip xs)
101 | (lefts, rights) = (l::lefts, r::rights)
101 | (lefts, rights) = (l::lefts, r::rights)
103+--------------------------------------------------------------------------------
105+--------------------------------------------------------------------------------
107+instance (Eq a) => Eq (Vect n a) where
109+ (==) (x::xs) (y::ys) =
116+--------------------------------------------------------------------------------
118+--------------------------------------------------------------------------------
120+instance Ord a => Ord (Vect n a) where
122+ compare (x::xs) (y::ys) =
103--------------------------------------------------------------------------------
129--------------------------------------------------------------------------------