Idris2-boot/tests/idris2/import001/Nat.idr
2019-06-11 11:54:47 +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)