On Wed, Oct 10, 2001 at 09:42:58PM +1000, Damian Conway wrote:
>
> John observed:
>
>> I just read Apocalypse and Exegesis 3, and something stuck out at me
>> because of its omission, namely using hyper operators for reduction.
>>
>> $a ^+= @list; # should sum the elements of
On Wed, Oct 10, 2001 at 04:04:18PM -0500, Jonathan Scott Duff wrote:
> On Wed, Oct 10, 2001 at 01:27:35PM -0700, Colin Meyer wrote:
> >
> > Does this mean that
> >
> > @a ^+= @b;
> >
> > will add every value of @b to every value of @a?
>
> That
On Wed, Oct 10, 2001 at 04:34:14PM -0500, Jonathan Scott Duff wrote:
> On Wed, Oct 10, 2001 at 02:23:33PM -0700, Colin Meyer wrote:
> [ @a ^+= @b ]
> > What I'd expect is more like:
> >
> > foreach my $elem (@a) {
> > $elem ^+= @b;
> > }
>
On Wed, Oct 10, 2001 at 03:41:18PM -0700, Colin Meyer wrote:
>
> Maybe this illustrates my confusion:
>
> $a = 1;
> @a = (1);
> @b = (1, 2, 3);
> @c = (4, 5, 6);
>
> $a = $a ^+ @b;
> @a = @a ^+ @b;
>
> print $a; # 7
> print @a; # 7 or 2?
Or, after re
According to Damian:
>
> Colin exemplifies:
>
>> $a = 1;
>> @a = (1);
>> @b = (1, 2, 3);
>> @c = (4, 5, 6);
>>
>> $a = $a ^+ @b;
>> @a = @a ^+ @b;
>>
>> print $a; # 7
>
> No. It will (probably) print: 4. Because:
>
>
>> print @a; # 7 or 2?
>
> Pri