Idris2/tests/idris2/total/total011/Issue1782.idr
2023-09-07 14:57:22 +01:00

12 lines
227 B
Idris

total
notHack : Nat -> (Nat, Nat)
notHack Z = (Z, Z)
notHack (S n) = let (baz1, baz2) = notHack n
in (baz2, S baz1)
total
hack : Nat -> (Void, Void)
hack n = let (baz1, baz2) = hack n
in (baz1, baz2)