RosettaCodeData/Task/Even-or-odd/Agda/even-or-odd.agda
2019-09-12 10:33:56 -07:00

8 lines
124 B
Agda
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

even : Bool
odd : Bool
even zero = true
even (suc n) = odd n
odd zero = false
odd (suc n) = even n