2020-05-19 20:25:18 +03:00
|
|
|
1/1: Building IEdit (IEdit.idr)
|
|
|
|
Main> my_cong x x Refl = Refl
|
|
|
|
Main> my_curry f x y = f (x, y)
|
|
|
|
Main> my_uncurry f x = f (fst x) (snd x)
|
|
|
|
Main> append [] ys = ys
|
|
|
|
append (x :: xs) ys = x :: append xs ys
|
|
|
|
Main> lappend [] ys = ys
|
|
|
|
lappend (x :: xs) ys = x :: lappend xs ys
|
2020-07-30 01:54:52 +03:00
|
|
|
Main> zipWith f [] [] = []
|
2020-05-19 20:25:18 +03:00
|
|
|
zipWith f (x :: xs) (y :: ys) = f x y :: zipWith f xs ys
|
|
|
|
Main> lookup Here (ECons x es) = x
|
|
|
|
lookup (There p) (ECons x es) = lookup p es
|
2020-07-26 19:34:24 +03:00
|
|
|
Main> foo = Leaf 0
|
2020-05-19 20:25:18 +03:00
|
|
|
Main> Main.my_uncurry : (a -> b -> c) -> (a, b) -> c
|
|
|
|
Main> Bye for now!
|