Idris2-boot/tests/idris2/literate008/expected
Marc Petit-Huguenin 7ea39af60e
Literate programming
- Add support for .lidr files.
- Add new Parse Error for Literate fails.
- Add support for Case Split.
- Add support for Add Clause.
- Add support for Add Lemma.
- Add tests.
2020-03-29 11:58:00 -07:00

8 lines
269 B
Plaintext

1/1: Building IEdit (IEdit.lidr)
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!