<a href="http://hpaste.org/44514/timed_iteration_try_2">http://hpaste.org/44514/timed_iteration_try_2</a><br><br>seems to work but seems inelegant.<br><br><div class="gmail_quote">On Fri, Mar 4, 2011 at 2:04 PM, Alex Rozenshteyn <span dir="ltr">&lt;<a href="mailto:rpglover64@gmail.com">rpglover64@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;">I read <a href="http://www.haskell.org/haskellwiki/Timing_out_computations" target="_blank">http://www.haskell.org/haskellwiki/Timing_out_computations</a><br>
I thought I saw an issue and tested it:<br><a href="http://hpaste.org/44512/timed_iteration" target="_blank">http://hpaste.org/44512/timed_iteration</a><br>
<br>IMO, the timeout function should return the last iterated value when it is signaled, and not the next one after the signal.<br><br>Is there a convention for this behavior?<br clear="all"><font color="#888888"><br>-- <br>
<div dir="ltr"><div>
          Alex R</div></div><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>          Alex R</div></div><br>