<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>On 2015-08-17 03:21, Kim-Ee Yeoh wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div class="gmail_extra"><br />
<div class="gmail_quote">On Mon, Aug 17, 2015 at 1:32 PM, Debdut Karmakar <span><<a href="mailto:debdutk@gnulinuxed.tk">debdutk@gnulinuxed.tk</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0  0  0  .8ex; border-left: 1px  #ccc  solid; padding-left: 1ex;">
<p>Sorry, I wrote a wrong function, the correct version is:</p>
<p>oddsFrom3 :: [Integer]<br /> oddsFrom3 = 3 : map (+2) oddsFrom3</p>
</blockquote>
</div>
</div>
<div class="gmail_extra">You can get some idea of lambda evaluation here:<br /><br /><a href="http://chrisuehlinger.com/LambdaBubblePop/">http://chrisuehlinger.com/LambdaBubblePop/</a><br /><br /></div>
<div class="gmail_extra">(Alas it doesn't support let expressions much less let rec.)<br /><br /></div>
<div class="gmail_extra">Once you have a modicum of intuition, you're now ready to appreciate the illustrated step-by-step evaluation of this infinite list:<br /><br /><a href="http://stackoverflow.com/a/19749422">http://stackoverflow.com/a/19749422</a><br /><br /></div>
<div class="gmail_extra">Based on the SO answer, you can now work out your function on your own.</div>
<div class="gmail_extra"><br clear="all" />
<div>
<div class="gmail_signature">-- Kim-Ee</div>
</div>
</div>
</div>
<br />
<pre>_______________________________________________
Beginners mailing list
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<p>Thanks, this is what I wanted. Thanks and the problem has been resolved.</p>
<div>-- <br />
<p><span style="font-family: andale mono,times; font-size: medium;">A<strong><a href="http://gnu.org" target="_blank"> GNU</a> <a href="http://www.linuxfoundation.org/" target="_blank">Linux</a></strong> Patron</span></p>
</div>
</body></html>