Project

General

Profile

Actions

Feature #14766

closed

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

Added by frewsxcv (Corey Farwell) over 6 years ago. Updated about 3 years ago.

Status:
Closed
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

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 :)

Actions #3

Updated by jeremyevans0 (Jeremy Evans) about 3 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0