mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-26 21:23:53 +03:00
a972778eab
They don't all pass yet, for minor reasons. Coming shortly... Unfortunately the startup overhead for chez is really noticeable here!
12 lines
289 B
Idris
12 lines
289 B
Idris
lplus : (1 x : Nat) -> (1 y : Nat) -> Nat
|
|
lplus Z y = y
|
|
lplus (S k) y = S (lplus k y)
|
|
|
|
foo : (1 x : Nat) -> (1 y : Nat) -> Nat -> Nat
|
|
foo x y z
|
|
= let 1 test = the Nat $ case z of
|
|
Z => Z
|
|
(S k) => S z
|
|
in
|
|
lplus test x
|