aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-25 13:52:07 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-25 13:52:07 +0000
commitb1a8c64483b5ba5e4a391aa68234e7bde6355034 (patch)
treefc7dc594e220ba737a0138666eed8841b55ab243 /NEWS
parentd1ea2f9d8f10ca728d178de92a26668c64f4aff8 (diff)
downloadruby-b1a8c64483b5ba5e4a391aa68234e7bde6355034.tar.gz
Add a new #filter alias for #select
* In Enumerable, Enumerator::Lazy, Array, Hash and Set [Feature #13784] [ruby-core:82285] * Share specs for the various #select#select! methods and reuse them for #filter/#filter!. * Add corresponding filter tests for select tests. * Update NEWS. [Fix GH-1824] From: Alexander Patrick <adp90@case.edu> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS32
1 files changed, 32 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index ab27497082..272b9ba475 100644
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,13 @@ with all sufficient information, see the ChangeLog file or Redmine
=== Core classes updates (outstanding ones only)
+* Array
+
+ * Aliased methods:
+
+ * Array#filter is a new alias for Array#select [Feature #13784]
+ * Array#filter! is a new alias for Array#select! [Feature #13784]
+
* Binding
* New methods:
@@ -40,6 +47,25 @@ with all sufficient information, see the ChangeLog file or Redmine
* added Dir#each_child and Dir#children instance methods. [Feature #13969]
+* Enumerable
+
+ * Aliased methods:
+
+ * Enumerable#filter is a new alias for Enumerable#select [Feature #13784]
+
+* Enumerator::Lazy
+
+ * Aliased methods:
+
+ * Enumerator::Lazy#filter is a new alias for Enumerator::Lazy#select [Feature #13784]
+
+* Hash
+
+ * Aliased methods:
+
+ * Hash#filter is a new alias for Hash#select [Feature #13784]
+ * Hash#filter! is a new alias for Hash#select! [Feature #13784]
+
* Kernel
* Kernel.#system takes :exception option to raise an exception on
@@ -80,6 +106,12 @@ with all sufficient information, see the ChangeLog file or Redmine
* Matrix#antisymmetric?
+* Set
+
+ * Aliased methods:
+
+ * Set#filter! is a new alias for Set#select! [Feature #13784]
+
=== Compatibility issues (excluding feature bug fixes)
=== Stdlib compatibility issues (excluding feature bug fixes)