mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 08:11:45 +03:00
10 lines
128 B
Idris
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)
|