summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2025-12-15 12:10:49 +0100
committerBenoit Daloze <eregontp@gmail.com>2025-12-15 12:11:46 +0100
commitbbc10ed0cdcd2fe9d7d09a9dcc5f036bc4425aef (patch)
treea54b20557af6e1f634b3ae02959050f95d930e8f
parent35209caef2b46de3a0625c2c40330ab3c6ebb5a3 (diff)
Add NEWS entry for Array#rfind and Array#find
-rw-r--r--NEWS.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index 1389c892f4..cd038f08d0 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -82,6 +82,11 @@ Note: We're only listing outstanding class updates.
* A deprecated behavior, process creation by `Kernel#open` with a
leading `|`, was removed. [[Feature #19630]]
+* Array
+
+ * `Array#rfind` has been added as a more efficient alternative to `array.reverse_each.find` [[Feature #21678]]
+ * `Array#find` has been added as a more efficient override of `Enumerable#find` [[Feature #21678]]
+
* Binding
* `Binding#local_variables` does no longer include numbered parameters.
@@ -478,4 +483,5 @@ A lot of work has gone into making Ractors more stable, performant, and usable.
[Feature #21550]: https://bugs.ruby-lang.org/issues/21550
[Feature #21557]: https://bugs.ruby-lang.org/issues/21557
[Bug #21654]: https://bugs.ruby-lang.org/issues/21654
+[Feature #21678]: https://bugs.ruby-lang.org/issues/21678
[Feature #21701]: https://bugs.ruby-lang.org/issues/21701