summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-05 06:23:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-05 06:23:34 +0000
commitd65d5533ab117b46211917450293f9c602519375 (patch)
treed604080f517ef921d2f74a64991524692092b662 /NEWS
parent68bf34fc272bea7df6a1aeb60096d362df9e5a22 (diff)
Add difference method to Array
I introduce a `difference` 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. I plan to introduce a `difference!` method as well. Tests and documentation are included. It solves partially https://bugs.ruby-lang.org/issues/14097 From: Ana María Martínez Gómez <ammartinez@suse.de> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS2
1 files changed, 1 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 7824dfc..ed96bae 100644
--- a/NEWS
+++ b/NEWS
@@ -41,7 +41,7 @@ sufficient information, see the ChangeLog file or Redmine
* New methods:
- * Added `Array#union` instance method.
+ * Added `Array#union` and `Array#difference` instance method.
[Feature #14097]
* Modified methods: