Idris2-boot/tests/idris2/interactive011/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

9 lines
308 B
Plaintext

1/1: Building IEdit (IEdit.idr)
Welcome to Idris 2 version 0.0. Enjoy yourself!
Main> natElim p x f Z = x
natElim p x f (S k) = f k (natElim p x f k)
Main> f k (natElim2 p x f k)
Main> listElim p mnil mcons [] = mnil
listElim p mnil mcons (x :: xs) = mcons x xs (listElim p mnil mcons xs)
Main> Bye for now!