[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:




in the list of lists:




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.


Download Messenger onto your mobile for free
-------------- 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