Idris2-boot/tests/idris2/import002/Nat.idr
2019-06-24 00:12:58 +01:00

11 lines
129 B
Idris

module Nat
public export
data Nat = Z | S Nat
public export
plus : Nat -> Nat -> Nat
plus Z y = y
plus (S k) y = S (plus k y)