<div class="gmail_quote">On Sun, Mar 27, 2011 at 10:53 PM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com">ncoghlan@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">On Mon, Mar 28, 2011 at 2:11 PM, Daniel Stutzbach <<a href="mailto:stutzbach@google.com">stutzbach@google.com</a>> wrote:<br>
> Is there a good use-case for the func argument?</div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The examples that Raymond gives in the docs (cumulative<br>
multiplication, running min/max, cash flow accumulation) look fairly<br>
solid to me.</blockquote><div><br></div><div>(I had the nagging suspicion that I was making a blunder in my email, but I couldn't see it despite rereading my email several times before sending. My blunder was in not rereading the patch to see the examples. Anyway...)</div>
<div><br></div><div>When would a running product, min, or max be useful?</div><div><br></div><div>for running_min in accumulate(data, min):</div><div> # Do what?</div><div><br></div></div>-- <br>Daniel Stutzbach<br>