ansible/dhall/Prelude/Natural/odd.dhall
2024-11-26 00:55:56 -05:00

10 lines
207 B
Text

--| Returns `True` if a number is odd and returns `False` otherwise
let odd
: Natural → Bool
= Natural/odd
let example0 = assert : odd 3 ≡ True
let example1 = assert : odd 0 ≡ False
in odd