I have a string like this:
"Some sentence1. Some sentence2, Some sentence3, Some sentence4....."
and I would like to turn it into a list of string
["Some sentence1", "Some sentence2", "Some sentence3.".......]
so far this is what I have:
foo :: String -> [String]
foor [] = []
| x /= ',' = [[x]] ++ foo xs
| otherwise = [[x] ++ foo xs]
which doesn't compile, much less work.
Help!
"Some sentence1,...?string split haskell? Because I found an answer that way.