mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-16 15:52:43 +03:00
11 lines
112 B
Idris
11 lines
112 B
Idris
|
%default total
|
||
|
|
||
|
partial
|
||
|
foo : Nat -> Nat
|
||
|
foo Z = Z
|
||
|
|
||
|
partial
|
||
|
bar : Nat -> Nat
|
||
|
bar n with (0)
|
||
|
bar n | k = foo n
|