mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-21 02:31:50 +03:00
10 lines
147 B
Idris
10 lines
147 B
Idris
data Odd : Nat -> Type
|
|
data Even : Nat -> Type
|
|
|
|
data Odd where
|
|
SO : Even n -> Odd (S n)
|
|
|
|
data Even where
|
|
Z : Even Z
|
|
SE : Odd n -> Even (S n)
|