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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe