Hi, <br>I am a newbie in Haskell and have some problem of defining a function that would convert all small letters to capital and leave the rest intact.<br>I have managed to do with two functions:<br><br>capitalise :: String -&gt; String<br>capitalise xs = [capitalise2 ch| ch&lt;-xs]<br><br>capitalise2 :: Char -&gt; Char<br>capitalise2 ch <br>&nbsp;&nbsp;&nbsp; | isLower ch &nbsp;&nbsp; = chr (ord ch - 32)<br>&nbsp;&nbsp;&nbsp; | otherwise&nbsp;&nbsp;&nbsp; = ch<br><br>But in the book exercise it asks to define as a single function. I tried like this:<br><br>capitalise :: String -&gt; String<br>capitalise xs = [chr (ord ch - 32) | ch&lt;-xs, isLower ch]<br><br>But this returns only converted characters, the rest is ignored.<br><br>Any help would be much appriciated.<br><p>&#32;Send instant messages to your online friends http://uk.messenger.yahoo.com