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]
- RFC 76 (v2) Builtin: reduce Perl6 RFC Librarian
- Re: RFC 76 (v2) Builtin: reduce Jonathan Scott Duff
- Re: RFC 76 (v2) Builtin: reduce iain truskett
- Re: RFC 76 (v2) Builtin: reduce Jonathan Scott Duff
- Re: RFC 76 (v2) Builtin: reduce iain truskett
- Re: RFC 76 (v2) Builtin: reduce Jonathan Scott Duff
- Re: RFC 76 (v2) Builtin: reduce Damian Conway
- Re: RFC 76 (v2) Builtin: reduce iain truskett
- Re: RFC 76 (v2) Builtin: reduce Graham Barr
- Re: RFC 76 (v2) Builtin: reduce Tom Christiansen
- Re: RFC 76 (v2) Builtin: reduce Graham Barr
- Re: RFC 76 (v2) Builtin: reduce John Porter