concept vect in category idris

appears as: Vect, Vects
Type-Driven Development with Idris

This is an excerpt from Manning's book Type-Driven Development with Idris.

You might notice a direct correspondence between the constructors of Vect and the constructors of Nat. When you add an element to a Vect with ::, you add an S constructor to its length. In practice, capturing the size of data structures like this is a very common use of Nat.

Listing 5.9. Reading a Vect of known length from the console (ReadVect.idr)