--
You received this message because you are subscribed to the Google Groups "Idris Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idris-lang+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idris-lang/0e40b4bf-ed41-4ed3-8db7-4d4f5cdb5f6fn%40googlegroups.com.
Hi,The type of what according to the compiler should beVect n (Vect 0 a)Here's one (and the only) such matrix in the case (n = 3): the (Vect 3 (Vect 0 a)) [[], [], []]The value:
the (Vect 0 (Vect n a)) [] is fine, but it won't fit in the hole what, because you need
the (Vect n (Vect 0 a)) ?what
If you are using idris2, you'll also need to make sure the implicit argument n is available at runtime, like so:transposeMat : {n : Nat} -> Vect m (Vect n elem) -> Vect n (Vect m elem)
I hope I helped,Ohad.
but my confusion is around what is Vect 0 (Vect m a) ? Is such a value possible?
But why does the empty vector turn out to be of the type Vect 0 (Vect m a) ?