<div class="gmail_quote">Hi Vadali,<br><br>On Tue, Jul 13, 2010 at 10:58 AM, vadali <span dir="ltr">&lt;<a href="mailto:shlomivaknin@gmail.com">shlomivaknin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
hello,<br>
iam really new to haskell,<br>
<br>
i want to define a function which takes as a parameter a list which can<br>
contain other lists, eg. [1,[2,3],[4,[5,6]]]<br>
<br>
how would i define a function that can iterate through the items so (in this<br>
example)<br>
iter1 = 1<br>
iter2 = [2,3]<br>
iter3 = [4,[5,6]]<br>
<br>
?<br>
<br>
( can i do that without using the Tree data type? </blockquote><div><br>No, a list contains a homogeneous sequence of values (i.e. a sequence of values of the same type). If you explain what you&#39;re trying to achieve we might be able to offer you better help.<br>

<br>Cheers,<br>Johan<br><br></div></div><br>