1
1
mirror of https://github.com/idris-lang/Idris2.git synced 2024-12-20 10:02:03 +03:00
Idris2/tests/idris2/import001/Nat.idr
2021-01-21 11:33:03 +00:00

10 lines
128 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)