mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-19 02:41:43 +03:00
8cb17de3f9
My first attempt at refolding natural constants led to all names being printed with their namespace prefixes. This fixes that, most notably by introducing the massive `mapPTermM` function in `Idris.Syntax`.
8 lines
269 B
Plaintext
8 lines
269 B
Plaintext
1/1: Building IEdit (IEdit.lidr)
|
|
Main> > natElim p x f 0 = 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!
|