On 5/2/06, <b class="gmail_sendername">Stéphane Rollandin</b> &lt;<a href="mailto:lecteur@zogotounga.net">lecteur@zogotounga.net</a>&gt; wrote:<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I believe the loop macro is implemented in Scheme; it makes this kind of<br>iterations very easy.<br><br>loop for i in list-a<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for j in (cddr list-b)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do (your-thing i j)<br><br>and you're done</blockquote>
<div><br>Yeah, but I had to restrict myself to what's defined in R5RS, which does not include the loop macro.<br><br>So yes, I ended up writing a similar macro, but I find that once I start using something like this, I quickly end up writing not-so-functional code, 
i.e. things that involve using set!.<br><br>I find Ralph's suggestion of Streams interesting. Following the discussion on the other thread on how to start learning Smalltalk, I think I've learned to use the Number classes and Collection classes pretty well, but the Streams classes is a family that I'm not so familar with. I think now is a good point for me to go learn how to use them. Other than the Streams section in the Blue Book (Smalltalk, The Language), are there other resources that you guys would recommand?
<br><br>Thanks,<br><br>Duncan.</div></div>