>>>>> "Perl6" == Perl6 RFC Librarian <[EMAIL PROTECTED]> writes:

Perl6> If the reduction subroutine has a prototype, that prototype
Perl6> determines how many items are reduced at a time. If the reduction subroutine
Perl6> is a block or has no prototype, two items are reduced each time.

... is inconsistent with ...

Perl6> If the original list has no elements, C<reduce> immediately throws an
Perl6> exception. If the original list has a single element, that element is
Perl6> immediately returned (without ever calling the reduction subroutine).

Can we resolve this?  That second paragraph doesn't take into account
what happens when I give 3 elements to a 7-element-at-a-time reduction
formula.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to