mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 09:12:34 +03:00
8 lines
269 B
Plaintext
8 lines
269 B
Plaintext
1/1: Building IEdit (IEdit.lidr)
|
|
Main> > natElim p y f 0 = y
|
|
> natElim p y f (S k) = f k (natElim p y 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!
|