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

5 lines
162 B
Haskell
Raw Permalink Normal View History

2023-07-01 11:58:00 -04: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"