Idris2/tests/idris2/interactive/interactive038/IEdit.idr
2023-09-07 14:57:22 +01:00

12 lines
299 B
Idris

data Vect : Nat -> Type -> Type where
Nil : Vect Z a
(::) : a -> Vect k a -> Vect (S k) a
%name Vect xs, ys, zs
replicate : {m : Nat} -> a -> Vect m a
transpose : {m : Nat} -> Vect n (Vect m a) -> Vect m (Vect n a)
transpose [] = ?transpose_rhs_1
transpose (x :: xs) = ?transpose_rhs_2