From bbc10ed0cdcd2fe9d7d09a9dcc5f036bc4425aef Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 15 Dec 2025 12:10:49 +0100 Subject: Add NEWS entry for Array#rfind and Array#find --- NEWS.md | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3