RosettaCodeData/Task/Logical-operations/Haskell/logical-operations-1.hs

10 lines
135 B
Haskell
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
a = False
b = True
a_and_b = a && b
a_or_b = a || b
not_a = not a
2018-06-22 20:57:24 +00:00
a_xor_b = a /= b
a_nxor_b = a == b
a_implies_b = a <= b -- sic!