On Wed, Oct 27, 2010 at 08:55:36PM -0700, Darren Duncan wrote:
> Stephen Mosher (via RT) wrote:
> >Attached is a diff against rakudo/src/core/Any-list.pm which adds support to
> >reduce() for higher-arity functions. It ensures arity-list agreement and is
> >generally safe. Other than the  test, the functionality was already
> >present... it  needed two lines commented out, two uncommented. Since tests
> >passed and there were no explanatory comments in the file, jnthn suggested I
> >mail in a diff. Here it is.
> 
> What is a common or fundamentally important example of an N-adic
> function whose base operation takes 3 or more operands, such that
> reduce() would be useful?

At one point we had the higher-arity capability in reduce(), and then
took it out because it didn't seem to make much sense.  So, I agree with
Darren that we need to see a use case or example (or otherwise some
"approval" in the spec) before we restore this capability.

Pm

Reply via email to