<div dir="ltr"><div>Hi Rein,<br><br></div>The initial version which the OP posted doesn't have a terminal value. The OP had posted the version that he'd wanted clarification on.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 17, 2015 at 12:40 PM, Rein Henrichs <span dir="ltr"><<a href="mailto:rein.henrichs@gmail.com" target="_blank">rein.henrichs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It will absolutely work. Lists can be infinite in Haskell and infinite lists are productive:<div><br><div><div>λ> take 5 oddsFrom3</div><div>[3,5,7,9,11]</div></div><div><br></div></div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 17, 2015 at 12:05 AM Debdut Karmakar <<a href="mailto:debdutk@gnulinuxed.tk" target="_blank">debdutk@gnulinuxed.tk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<p>On 2015-08-17 02:35, akash g wrote:</p>
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px;width:100%">
<div dir="ltr">
<div>Not a problem. And I should have thought about what you wanted too. <br><br>This version will give you an infinite list of odd numbers from 3.<br><br></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Aug 17, 2015 at 12:02 PM, Debdut Karmakar <span><<a href="mailto:debdutk@gnulinuxed.tk" target="_blank">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"><span style="text-decoration:underline"></span>
<div>
<p>Sorry, I wrote a wrong function, the correct version is:</p>
<p>oddsFrom3 :: [Integer]<br> oddsFrom3 = 3 : map (+2) oddsFrom3</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>
</div>
<br>_______________________________________________<br> Beginners mailing list<br><a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br><br></blockquote>
</div>
</div>
<br>
<pre>_______________________________________________
Beginners mailing list
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
</blockquote>
</div><div><p>I know that it will evaluate to a list of odd numbers >= 3, but how?</p>
<p>Thanks, anyway.</p></div><div>
<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>
</div>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>
</div></div><br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>