[ruby-cvs:71879] nobu:r64787 (trunk): Add union method to Array

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Sep 20 12:18:52 JST 2018

nobu	2018-09-20 12:18:52 +0900 (Thu, 20 Sep 2018)

  New Revision: 64787


    Add union method to Array
    I introduce a `union` method equivalent to the `|` operator, but which
    accept more than array as argument. This improved readability, and it
    is also coherent with the `+` operator, which has a similar `concat`
    method. The method doesn't modify the original object and return a new
    object instead. It is plan to introduce a `union!` method as well.
    Tests and documentation are included.
    It solves partially https://bugs.ruby-lang.org/issues/14097
    [Fix GH-1747] [Feature #14097]
    From: Ana Mar?\195?\173a Mart?\195?\173nez G?\195?\179mez <ammartinez at suse.de>

  Modified files:

More information about the ruby-cvs mailing list