on master help sign in
fixed a stupid error in unzip3
commit023f6f148eb3b561c29d48010476d902aa07032f authorJP Smith <jp.smith@ilstu.edu> dateTue 14 Oct 2014, 10:21 (12 years ago) parent7afa310
1 file changed+1−1
libs/prelude/Prelude/Vect.idr+1−1
libs/prelude/Prelude/Vect.idr+1−1
@@ -227,7 +227,7 @@ unzip ((l, r)::xs) with (unzip xs)
227227||| Convert a vector of three-tuples to a triplet of vectors
228228unzip3 : Vect n (a, b, c) -> (Vect n a, Vect n b, Vect n c)
229229unzip3 [] = []
230−unzip3 [(l,c,r):xs] with (unzip3 xs) |
230+unzip3 ((l,c,r)::xs) with (unzip3 xs)
231231 | (lefts, centers, rights) = (l::lefts, c::centers, r::rights)
232232
233233--------------------------------------------------------------------------------