3import Decidable.Equality
7 data Elem : a -> List a -> Type where
8 Here : Elem x (x :: xs)
9 There : Elem x xs -> Elem x (y :: xs)
11isElem : (x : Nat) -> (xs : List Nat) -> Maybe (Elem x xs)
12isElem x xs = ?isElem_rhs
14vadd : Num a => Vect n a -> Vect n a -> Vect n a
15vadd xs ys = localZipWith (+) xs ys where
16 localZipWith : (a -> b -> c) -> Vect n a -> Vect n b -> Vect n c
17 localZipWith f [] [] = []
18 localZipWith f (_ :: _) ys = ?localZipWith_rhs
20map : (a -> b) -> Vect n a -> Vect n b
22map f (x :: xs) = ?maprhs
24isElem2 : (x : Nat) -> (xs : List Nat) -> Maybe (Elem x xs)
26isElem2 x (y :: ys) = ?isElem_rhs_2
28isElem3 : (x : Nat) -> (xs : List Nat) -> Maybe (Elem x xs)
30isElem3 x (y :: ys) with (decEq x y)
31 isElem3 x (y :: ys) | (Yes p) = ?isElem3_rhs_1
32 isElem3 x (y :: ys) | (No _) = ?isElem3_rhs_2
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