Actions
Feature #14766
closedIndicate `find_all` and `select` methods are aliases.
Status:
Closed
Assignee:
-
Target version:
-
Description
This matches the documentation for Enumerable::inject
and Enumerable::reduce
which are also aliases.
https://github.com/frewsxcv/ruby/commit/df2a373ca4d003c94f46a0c036e29c83e42ed4de
Updated by shevegen (Robert A. Heiler) over 6 years 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.
Updated by frewsxcv (Corey Farwell) over 6 years 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 :)
Updated by jeremyevans0 (Jeremy Evans) almost 3 years ago
- Status changed from Open to Closed
Actions
Like0
Like0Like0Like0