Skip to content

Add Array#indexes (index_all)#294

Merged
trans merged 1 commit intorubyworks:mainfrom
TylerRick:Array#indexes
Mar 26, 2026
Merged

Add Array#indexes (index_all)#294
trans merged 1 commit intorubyworks:mainfrom
TylerRick:Array#indexes

Conversation

@TylerRick
Copy link
Copy Markdown
Contributor

Like Array#index/rindex but returns all indexes instead of just the first/last.

This would be useful to have until https://bugs.ruby-lang.org/issues/6596 gets accepted.

@trans trans merged commit 2f85b1d into rubyworks:main Mar 26, 2026
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