mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2025-01-07 05:36:30 +03:00
e6292acdf0
This involved implementing the 'TryWithImplicits' hack for allowing unbound implicits in types with case blocks
14 lines
473 B
Plaintext
14 lines
473 B
Plaintext
1/1: Building IEdit (IEdit.idr)
|
|
Welcome to Idris 2 version 0.0. Enjoy yourself!
|
|
Main> my_cong x x Refl = Refl
|
|
Main> curry f x y = f (x, y)
|
|
Main> uncurry f x = f (fst x) (snd x)
|
|
Main> append [] ys = ys
|
|
append (x :: xs) ys = x :: append xs ys
|
|
Main> zipWith f [] ys = []
|
|
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
|
|
Main> Main.uncurry : (a -> b -> c) -> (a, b) -> c
|
|
Main> Bye for now!
|