On Tue, Sep 19, 2000 at 07:29:56PM -0000, Perl6 RFC Librarian wrote:
> =head1 TITLE
> 
> Builtin: reduce

...

> Collection:
> 
>         @triples = @{ reduce sub($;$$$){ [@{shift},[@_] }, [], @singles };

You've a typo there, it should be:

        @triples = @{ reduce sub($;$$$){ [@{shift},[@_]] }, [], @singles };

> Separation:
> 
>         $sorted = reduce { push @{$_[0][$_[1]%2]}, $_[1]; $_[0] }
>                          [[],[]],
>                          @numbers;

I don't understand this one.

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to