>
>And I really do like | for any(). And I can see using it like this:
>
> @cases ^|= @newcases;
>
>to mean
>
> for @cases | @newcases -> $x is rw | $y {
> $x = any($x, $y);
> }
>
but then probably we should also have
@cases = @cases ^| @newcases; is same as ( @cases ^|= @newcases; )
@cases = @cases ^, @newcases; is same as ( @cases ^,= @newcases; )
the second creates a list of two-element arrays which may be useful.
>Another question is whether using a superposition to represent parallel
>streams in "for" is doing the "any" concept too much violence. Really,
>it's more of a hyper-any, at least on the left:
>
> for @cases ^| @newcases -> $x is rw | $y {...}
>
>But note that ^& automatically gives us the shorter of the two lists.
>
in analogy, may be here
for @cases ^, @newcases -> $x is rw , $y {...}
will do the job . though not clear what happens when arrays have different
length. which proves that | is just special comma.
print >>arcadi =~ s/Larry/arcadi/ ;
>Maybe...
>
>Just thinking... :-)
>
>Larry
>
arcadi