change letter to lowercast with haskell issue -


itemprop = "text">

I have this question: "Write the Haskell function blackmindrom :: [four] -> Identify the hair as madness, like" Madam, I \ 'm Adam "notice, you need to throw all the capital letters in lower case and throw punctuation before comparing it."

I write this code in Hackel:

  import char less :: string -> String less xs = [tolow ch | Ch & lt; -xs] tolow :: char - & gt; Four Toulouse's | IsUpper ch = chr (ord ch + 32). Otherwise = CE and Andromont :: [Four] - & gt;  

Main> ImageDial "DSD"

P>

Main> iPialidrome "DSD"

The truth is

Why is it not that I lie with capital letters?

You are low

- The case is just the opposite of the comparison, while you should have both low-case .


Comments