7data List a = Nil | Cons a (List a);
9data Vect : Set -> Nat -> Set where
11 | (::) : a -> Vect a k -> Vect a (S k);
13data Env : Vect Set n -> Set where
15 | Extend : {xs : Vect Set n} -> a -> Env xs -> Env (a :: xs);
18PLUSTY = Nat -> Nat -> Nat;
22plus (S k) y = S (plus k y);
24app : Vect a n -> Vect a m -> Vect a (plus n m);
26app (x :: xs) ys = x :: app xs ys;
28map : (a -> b) -> Vect a n -> Vect b n;
30map f (x :: xs) = f x :: map f xs;
32test : Nat -> Vect Nat (S (S O));
33test n = n :: n :: VNil;
35tvect : Vect Nat (S (S (S (S O))));
36tvect = app (test O) (test (S O));
38mapPlus : Vect Nat n -> Vect Nat n;
39mapPlus = map (plus (S (S O)));
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list