# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #63740]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63740 >


<bacek> rakudo: say reduce -> $a, $b?, $c? { $a + ($b//0) + ($c//0) }, 1,2;
<p6eval> rakudo 8bbc31: OUTPUT«Cannot reduce() using a unary or
nullary function. [...]
<masak> haha :)
* masak submits
<bacek> It's because of '.arity'...

As bacek said, reduce shouldn't look at the required params, but at
all params when checking arity, and .arity does the former.

Reply via email to