Is it possible to "hyper" a hyper operator?
For example, given:
my @m = ( [1,2], [3,4], [5,6] );
my $a = @m + 1;
my $b = @m +« 1;
my $c = @m +«« 1;
is it true that:
ok($a == 4);
ok($b »==« [ 3, 3, 3 ];
ok($c »»==«« [ [2,3], [4,5], [6,7] ];
Is there an "infinite depth" hyper oper
Dave Whipp writes:
> Is it possible to "hyper" a hyper operator?
>
> For example, given:
>
> my @m = ( [1,2], [3,4], [5,6] );
>
> my $a = @m + 1;
> my $b = @m +Â 1;
> my $c = @m +ÂÂ 1;
Those are actually:
my $b = @m Â+Â 1;
my $c = [ map { +$^x } @m ];
Hyper markers go on both
Austin Hastings writes:
> > Those are actually:
> >
> > my $b = @m Â+Â 1;
> > my $c = [ map { +$^x } @m ];
>
> Boggle! Why wouldn't that be:
>
>my $c = [ map { $^x Â+Â 1 } @m ];
>
> for the last one?
Whoops. I thought I was preserving his original semantic, but I wasn't.
I had so