Shmen
03-20-2004, 01:43 AM
I'm not sure why Haskell doesn't compile this sections of code.
Could some help me make sense of the logic to make this work
the error haskell gives is " parse error on input = " for the code below
engTeenNumbers:: Int -> String
engTeenNumbers number
| (head number) == 1 && (tail number) >= 4 = english number ++ "teen"
Could some help me make sense of the logic to make this work
the error haskell gives is " parse error on input = " for the code below
engTeenNumbers:: Int -> String
engTeenNumbers number
| (head number) == 1 && (tail number) >= 4 = english number ++ "teen"