
4 Dec
2007
4 Dec
'07
12:13 p.m.
hi I am having trouble with a function that is supposed to eliminate spaces from the start of a String and return the resulting string. I reckon a dropWhile could be used but the isSpace bit is causing me problems... words :: String -> String words a = case dropWhile isSpace a of "" -> s:ss -> (s:word) : words rest where (word,rest) = break isSpace ss Thanks Ryan _________________________________________________________________ The next generation of MSN Hotmail has arrived - Windows Live Hotmail http://www.newhotmail.co.uk