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
Can you guess the film? Search Charades!