RosettaCodeData/Task/Logical-operations/Agda/logical-operations-1.agda
2023-07-01 13:44:08 -04:00

7 lines
223 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.

module AndOrNot where
open import Data.Bool using (Bool ; false ; true ; _∧_ ; __ ; not)
open import Data.Product using (_,_ ; _×_)
test : Bool Bool Bool × Bool × Bool
test a b = a b , a b , not a