On Wed, Sep 20, 2000 at 07:31:35AM +1100, iain truskett wrote:
> * Jonathan Scott Duff ([EMAIL PROTECTED]) [20 Sep 2000 07:15]:
> > On Tue, Sep 19, 2000 at 07:29:56PM -0000, Perl6 RFC Librarian wrote:
> > > =head1 TITLE
> > > 
> > > Builtin: reduce
> [...]
> > > Separation:
> > > 
> > >         $sorted = reduce { push @{$_[0][$_[1]%2]}, $_[1]; $_[0] }
> > >                          [[],[]],
> > >                          @numbers;
> 
> > I don't understand this one.
> 
> $sorted = reduce { push @{ ^0 [ ^1 % 2 ] }, ^1; ^0 }, [[],[]], @numbers;

I guess I'm confused with the syntax.  Shouldn't there be an -> in
there?

        $sorted = reduce { push @{ ^0->[^1%2] }, ^1; ^0 }, [[],[]], @numbers;

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to