mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 00:10:31 +03:00
a972778eab
They don't all pass yet, for minor reasons. Coming shortly... Unfortunately the startup overhead for chez is really noticeable here!
14 lines
239 B
Idris
14 lines
239 B
Idris
import Stuff
|
|
|
|
efn : ((0 x : Nat) -> Nat -> Nat) -> Nat
|
|
efn f = f (S Z) (S Z)
|
|
|
|
okfn : ((x : Nat) -> Nat -> Nat) -> Nat
|
|
okfn f = f (S Z) (S Z)
|
|
|
|
ignore : (0 x : Nat) -> Nat -> Nat
|
|
ignore x y = y
|
|
|
|
lin : (1 x : Nat) -> Nat -> Nat
|
|
lin x y = S x
|