Idris-dev/test/interactive003/interactive003.idr
Edwin Brady 43127b17a7 Move Fin, Vect and So from prelude to base
They can be imported from the modules Data.Fin, Data.Vect, and Data.So
respectively.

The general thinking here is that not every program is going to need
these, and they are often used especially by newcomers in place of
something more appropriate. Also, all of them are useful for teaching,
which means it is instructive for tutorials to introduce them and have
people implement them themselves.
2014-12-31 20:18:02 +00:00

11 lines
267 B
Idris

import Data.Vect
app : Vect n a -> Vect m a -> Vect (n + m) a
app [] ys = ?app_rhs_1
app (x :: xs) ys = ?app_rhs_2
vzipWith : (a -> b -> c) -> Vect n a -> Vect n b -> Vect n c
vzipWith f [] [] = ?vzipWith_rhs_3
vzipWith f (x :: xs) (y :: ys) = ?vzipWith_rhs_1