mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 20:51:43 +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
|