From: "Martin J. Dürst" Date: 2018-09-20T17:45:49+09:00 Subject: [ruby-core:89104] Fwd: [ruby-cvs:71879] nobu:r64787 (trunk): Add union method to Array Any chance to get messages such as the one below to include non-ASCII characters correctly? Ana's name isn't Ana Mar?\195?\173a Mart?\195?\173nez G?\195?\179mez, it's Ana Mar��a Mart��nez G��mez. Email can handle this, and so should the rest of our infrastructure. Please tell me if you need any help. Regards, Martin. -------- Forwarded Message -------- Subject: [ruby-cvs:71879] nobu:r64787 (trunk): Add union method to Array Date: Thu, 20 Sep 2018 12:18:52 +0900 From: nobu@ruby-lang.org To: ruby-cvs@ruby-lang.org nobu 2018-09-20 12:18:52 +0900 (Thu, 20 Sep 2018) New Revision: 64787 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64787 Log: 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 Modified files: trunk/NEWS trunk/array.c trunk/test/ruby/test_array.rb . Unsubscribe: