Idris2-boot/tests/idris2/interactive005/expected
Edwin Brady e6292acdf0 Finish adding interactive tests from Blodwen
This involved implementing the 'TryWithImplicits' hack for allowing
unbound implicits in types with case blocks
2019-06-24 16:23:32 +01:00

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!