25 June, 2006

[Haskell] Exercise 3.3

ex33.hsを作成。

exOr :: Bool -> Bool -> Bool
exOr True True = False
exOr True False = True
exOr False True = True
exOr False False = False

*Main> exOr True True
False
*Main> exOr True False
True
*Main> exOr False True
True
*Main> exOr False False
False
*Main>

No comments: