Nikolai Weibull <mailing-lists.ruby-talk / rawuncut.elitemail.org> writes:

> Simon Strandgaard wrote:
>
>> Sometimes wish that  [3, 5, 13] | [8]  can be written as [3, 5, 13] | 8
>> that  ary |= 42  would be possible.
>> 
>> chris2 pointed out that it would be inconsistent with [1,2,3] + 4.
>> maybe let + append 4 to the array?
>
> Sorry for such a late response, but I just had to ask:
>
> Why not just use Array#<<?  It works fine, is unambiguous, and neither
> the suggestions for Array#| nor that for Array#+ do anything that
> Array#<< doesn't already.  Or am I missing something vital here?,
>         nikolai

<< is destructive, + copies, | copies but doesn't add it if it's
already in there.

Still, I don't see what you are trying to say?

> Nikolai Weibull
-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org