At 02:46 PM 8/9/00 +0000, Perl6 RFC Librarian wrote:
>=head1 TITLE
>
>Builtin: reduce
There are some things unspecified. Specifically 'special' reduce variables.
You've got:
> $sum = reduce {$_[0]+$_[1]} 0, @numbers;
> $sum = reduce ^_+^_, 0, @numbers;
> $min = reduce ^x <= ^y ? ^x : ^y, @numbers
I see $_[foo], ^_, and ^somename. I understand how we get to $_[foo], and I
can intuit what ^_ means (though it should be specified, I think), but what
about ^name?
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk
- RFC 76 (v1) Builtin: reduce Perl6 RFC Librarian
- Re: RFC 76 (v1) Builtin: reduce Chaim Frenkel
- Re: RFC 76 (v1) Builtin: reduce Bart Lateur
- Re: RFC 76 (v1) Builtin: reduce Damian Conway
- Re: RFC 76 (v1) Builtin: reduce Chaim Frenkel
- Re: RFC 76 (v1) Builtin: reduce Randal L. Schwartz
- Re: RFC 76 (v1) Builtin: reduce Damian Conway
- Re: RFC 76 (v1) Builtin: reduce Chaim Frenkel
- Re: RFC 76 (v1) Builtin: reduce Damian Conway
- Re: RFC 76 (v1) Builtin: reduce Dan Sugalski
- Re: RFC 76 (v1) Builtin: reduce Ariel Scolnicov
- Re: RFC 76 (v1) Builtin: reduce Chaim Frenkel
- Re: RFC 76 (v1) Builtin: reduce Ariel Scolnicov
- Re: RFC 76 (v1) Builtin: reduce Chaim Frenkel
- Re: RFC 76 (v1) Builtin: reduce Jeremy Howard
- Re: RFC 76 (v1) Builtin: reduce Ariel Scolnicov
- Re: RFC 76 (v1) Builtin: red... Bart Lateur
- Re: RFC 76 (v1) Builtin:... Graham Barr
- Re: RFC 76 (v1) Builtin:... John Porter
- Re: RFC 76 (v1) Builtin: reduce Graham Barr
