RosettaCodeData/Task/Integer-comparison/Haskell/integer-comparison-2.hs

5 lines
162 B
Haskell
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
myCompare a b = case compare a b of
LT -> "A is less than B"
GT -> "A is greater than B"
EQ -> "A equals B"