<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 19 November 2013 00:11, Michael Richter <span dir="ltr"><<a href="mailto:ttmrichter@gmail.com" target="_blank">ttmrichter@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"><div class="gmail_extra"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><span style="color:rgb(34,34,34)">I suggest having three versions:</span><br></div>
<br>
- peek, which returns both the key and the value<br>
- peek_key, which returns the smallest key<br>
- peek_value, which returns the value corresponding to the smallest key<br></blockquote><div><br></div></div><div>I'll implement it that way tomorrow.</div></div></div></div></blockquote><div><br></div><div>And then I says to myself "never put off to tomorrow what takes five minutes tonight". Done.</div>
<div><br></div><div>Six predicates: peek, peek_key, peek_value, det_peek, det_peek_key, det_peek_value.</div><div>Two functions: det_peek_key, det_peek_value.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I prefer "unexpected($file, $pred, ..." since $pred already includes the<br>
module name.<br>
</blockquote></div></div><div class="gmail_extra"><br></div>Will change this tomorrow as well.</div></div></blockquote><div><br></div><div>Also changed tonight. Still awaiting word on 76 vs. 79 lines.</div><div><br></div>
</div>-- <br>"Perhaps people don't believe this, but throughout all of the discussions of entering China our focus has really been what's best for the Chinese people. It's not been about our revenue or profit or whatnot."<br>
--Sergey Brin, demonstrating the emptiness of the "don't be evil" mantra.
</div></div>