Jeremy Howard writes:
>   @result = @a || @b;
> 
> Which applies '||' component-wise to elements of @a and @b, placing the
> result in @result.

*Ptui*  That's not how *I* want || to behave on lists/arrays.

I want
  @result  = @a || @b;
to be like:
  (@result = @a) or (@result = @b);

That's what all my students keep expecting it to mean.

Nat

Reply via email to