ruby-changes:59174
From: Corey <ko1@a...>
Date: Wed, 11 Dec 2019 11:15:32 +0900 (JST)
Subject: [ruby-changes:59174] 69aa927a40 (master): Indicate `find_all` and `select` methods are aliases.
https://git.ruby-lang.org/ruby.git/commit/?id=69aa927a40 From 69aa927a40618591082085fe04c010d516dd50d3 Mon Sep 17 00:00:00 2001 From: Corey Farwell <coreyf@r...> Date: Mon, 17 Apr 2017 17:58:51 -0400 Subject: Indicate `find_all` and `select` methods are aliases. This matches the documentation for `Enumerable::inject` and `Enumerable::reduce` which are also aliases. diff --git a/enum.c b/enum.c index 7606e58..89148e9 100644 --- a/enum.c +++ b/enum.c @@ -426,6 +426,9 @@ enum_size_over_p(VALUE obj, long n) https://github.com/ruby/ruby/blob/trunk/enum.c#L426 * Returns an array containing all elements of +enum+ * for which the given +block+ returns a true value. * + * The <i>find_all</i> and <i>select</i> methods are aliases. + * There is no performance benefit to either. + * * If no block is given, an Enumerator is returned instead. * * -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/