mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 18:21:47 +03:00
10 lines
155 B
Idris
10 lines
155 B
Idris
|
module Data.Integral
|
||
|
|
||
|
export
|
||
|
even : Integral n => Eq n => n -> Bool
|
||
|
even n = n `mod` 2 == 0
|
||
|
|
||
|
export
|
||
|
odd : Integral n => Eq n => n -> Bool
|
||
|
odd = not . even
|