[Haskell-cafe] Separate a string into a list of strings

Sara Kenedy sarakenedy at gmail.com
Mon Jun 12 17:03:02 EDT 2006


Hi all,

I want to write a function to separate a string into a list of strings
separated by commas.

Example:
separate :: String -> [String]

separate "Haskell, Haskell, and Haskell" = ["Haskell", "Haskell", "and Haskell"]

If anyone has some ideas, please share with me. Thanks.

S.


More information about the Haskell-Cafe mailing list