Project

General

Profile

Feature #14766

Indicate `find_all` and `select` methods are aliases.

Added by frewsxcv (Corey Farwell) 5 months ago. Updated 5 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:87083]

Description

This matches the documentation for Enumerable::inject and Enumerable::reduce which are also aliases.

https://github.com/frewsxcv/ruby/commit/df2a373ca4d003c94f46a0c036e29c83e42ed4de

History

#1 [ruby-core:87085] Updated by shevegen (Robert A. Heiler) 5 months ago

Seems to make sense.

Here is a link to the API documentation for Enumerable reduce:

https://ruby-doc.org/core/Enumerable.html#method-i-reduce

Edit: There is also a SO overflow question about it:

https://stackoverflow.com/questions/20999192/is-find-all-and-select-the-same-thing

Either way, I think documenting this would be useful.

#2 [ruby-core:87089] Updated by frewsxcv (Corey Farwell) 5 months ago

FYI, I already made the documentation change, it would just need to be cherry picked: https://github.com/frewsxcv/ruby/commit/df2a373ca4d003c94f46a0c036e29c83e42ed4de

Edit: There is also a SO overflow question about it:

Yep! This is why I decided to create this patch :)

Also available in: Atom PDF