[...] Original: $sorted = reduce { push @{$_[0][$_[1]%2]}, $_[1]; $_[0] } [[],[]], @numbers; Transformed, and made erroneous: $sorted = reduce { push @{ ^0[ ^1 % 2 ] }, ^1; ^0 }, [[],[]], @numbers; Transformed correctly: $sorted = reduce { push @{ ^0->[ ^1 % 2 ] }, ^1; ^0 }, [[],[]], @numbers; Damian writes: > Note that the original @_-based *didn't* need one, because ->'s are > optional between ] and [. My apologies for any confusion arising. If the RFC goes another 'developing' version, would it be possible for you to include the ^0 based one? cheers, -- iain truskett, aka Koschei. <http://eh.org/~koschei/> I have always imagined that Paradise will be a kind of library. Jorge Luis Borges
- 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
- Re: RFC 76 (v2) Builtin: reduce Damian Conway
- Re: RFC 76 (v2) Builtin: reduce Damian Conway
- Re: RFC 76 (v2) Builtin: reduce Graham Barr
- Re: RFC 76 (v2) Builtin: reduce iain truskett
- Re: RFC 76 (v2) Builtin: reduce John Porter
- Re: RFC 76 (v2) Builtin: reduce Nathan Wiger