<div class="im" style="font-family:arial,sans-serif;font-size:13px">Emanuel: I was trying to build infinite list from -inf to +inf.<br><br></div><span style="font-family:arial,sans-serif;font-size:13px">Bob: What would you expect the number after -inf to be?</span><br>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Wait a minute, let's just talk about the head of the list. What type is the list element? Int? Integer? If Int, there's minBound :: Bounded Int => Int. If Integer, no such instance exists!</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">So perhaps you want [minBound .. maxBound] :: [Int]?</span></div><div class="gmail_extra">
<br clear="all"><div>-- Kim-Ee</div><br>
<br><br><div class="gmail_quote">On Tue, Dec 18, 2012 at 10:16 PM, Tom Davie <span dir="ltr"><<a href="mailto:tom.davie@gmail.com" target="_blank">tom.davie@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 class="im"><br>
On 18 Dec 2012, at 14:35, Emanuel Koczwara <<a href="mailto:poczta@emanuelkoczwara.pl">poczta@emanuelkoczwara.pl</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> Dnia 2012-12-18, wto o godzinie 20:30 +0600, Alexander _ pisze:<br>
>> Hello,<br>
>><br>
>><br>
>><br>
>> Here you try to reverse infinite list. What do you expect to get?<br>
>><br>
><br>
> I was trying to build infinite list from -inf to +inf.<br>
<br>
</div>What would you expect the number after -inf to be?<br>
<br>
Bob<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br></div>