mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 08:42:11 +03:00
738c9d77d2
Snoc add an element at the end of the vector. The main use case for such a function is to get the expected type signature Vect n a -> a -> Vect (S n) a instead of Vect n a -> a -> Vect (n + 1) a which you get by using `++ [x]` Snoc gets is name from `cons` by reversin each letter, indicating tacking on the element at the end rather than the begining. `append` would also be a suitable name. |
||
---|---|---|
.. | ||
Control | ||
Data | ||
Debug | ||
Decidable | ||
Language | ||
System | ||
base.ipkg | ||
Makefile | ||
System.idr |