зеркало из https://github.com/github/ruby.git
Indicate `find_all` and `select` methods are aliases.
This matches the documentation for `Enumerable::inject` and `Enumerable::reduce` which are also aliases.
This commit is contained in:
Родитель
0fafb83b38
Коммит
69aa927a40
3
enum.c
3
enum.c
|
@ -426,6 +426,9 @@ enum_size_over_p(VALUE obj, long n)
|
|||
* 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.
|
||||
*
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче