<div class="gmail_quote">On Thu, Oct 22, 2009 at 9:11 PM, Chandni Navani <span dir="ltr"><<a href="mailto:chandni_ca@yahoo.com">chandni_ca@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
I have a list of lists which all contain strings. [[String]]. I need to figure out how to print them so that after each individual string, there is a new line.<br><br>If this is the initial list [["abc", "cde"] ["fgh", "ghi"]]<br>
[["abc"<br> "cde"]<br> ["fgh",<br> "ghi"]]<br><br>Can anyone help me figure this out? Thanks.<br><br></td></tr></tbody></table></blockquote></div><br>You can use unlines and concat :<br>
<br>> putStr . unlines . concat $ [["abc", "cde"] ["fgh", "ghi"]]<br><br>-- <br>Jedaï<br>