Skip to content

Define Array#detect as an alias for Array#find#15558

Merged
kddnewton merged 1 commit intoruby:masterfrom
etiennebarrie:define-array-detect-as-an-alias-for-array-find
Dec 15, 2025
Merged

Define Array#detect as an alias for Array#find#15558
kddnewton merged 1 commit intoruby:masterfrom
etiennebarrie:define-array-detect-as-an-alias-for-array-find

Conversation

@etiennebarrie
Copy link
Copy Markdown
Contributor

@etiennebarrie etiennebarrie commented Dec 15, 2025

Otherwise Array#detect is Enumerable#detect while Array#find uses a different more performant implementation.

[Feature #21678]

Otherwise Array#detect is Enumerable#detect while Array#find uses a
different more performant implementation.

[Feature #21678]
@kddnewton kddnewton merged commit bb0e42c into ruby:master Dec 15, 2025
99 of 101 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants