[Haskell-beginners] beginner question
Luca Ciciriello
luca_ciciriello at hotmail.com
Fri Oct 30 09:40:13 EDT 2009
Hi all.
Just a very basic question.
I need to write a function str2lsts :: String -> [[String]] in order to transorm a string like:
"\"1\",\"cat\",\"dog\"§\"2\",\"duck\",\"goose\""
in the list of lists:
[["1","cat","dog"],["2","duck","goose"]]
I've tried to mix recursion, pattern matching and list comprehension, but the obtained result was embarrassing complex (> 20 lines of awful code). I think that a more simple solution certainly exists.
Thanks in advance for any idea.
Luca
_________________________________________________________________
Download Messenger onto your mobile for free
http://clk.atdmt.com/UKM/go/174426567/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20091030/4a0586e3/attachment.html
More information about the Beginners
mailing list