more test cases, problem in Tree.newt
This commit is contained in:
@@ -47,11 +47,9 @@ zipWith : {a b c : U} {m : Nat} -> (a -> b -> c) -> Vect m a -> Vect m b -> Vect
|
||||
zipWith f Nil Nil = Nil
|
||||
zipWith f (x :: xs) (y :: ys) = f x y :: zipWith f xs ys
|
||||
|
||||
-- NOW cases very broken here - empty switches
|
||||
transpose : {a : U} {m n : Nat} -> Vect m (Vect n a) -> Vect n (Vect m a)
|
||||
transpose {a} {Z} {n} Nil = vec n Nil
|
||||
transpose {a} {S z} {n} (_::_ {a'} {j} x xs) = zipWith (_::_) x (transpose xs)
|
||||
-- transpose {a} {m} {n} (_::_ {a'} {j} x xs) = zipWith (_::_) x (transpose xs)
|
||||
|
||||
ptype Int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user