On Thu, 4 Oct 2001, Stephane Payrard wrote: > Hyper operators with operands of different size are partly covered > in A3: > > > Hyper operators will also intuit where a dimension is missing from one > of its arguments, and replicate a scalar value to a list value in that > dimension. That means you can say: > @a ^+ 1 > > The former example a particular case of the size an operand being a > multiple of the other: > > my @a = 6; # <= still supported in perl 6? > @a ^= ( 1, 2, 3); > > could be equivalent to > > my @a = ( 1, 2, 3, 1, 2, 3) > > We could even extend to operands where none size is a multiple of the > other but I can't see any reason to do that.
I see no reason why not: my @a = 13; @a ^= ( 1, 2, 3 ); would be the same as: my @a = ( 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1 ); Also, I like the word 'hyperator' :-) - D <[EMAIL PROTECTED]>