Skip to content

Commit 31bb7e1

Browse files
committed
Implement Enumerable#filter.
1 parent 9b445b0 commit 31bb7e1

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

spec/tags/core/enumerable/filter_tags.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/ruby/truffleruby/core/enumerable.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ def find_all
642642
end
643643

644644
alias_method :select, :find_all
645+
alias_method :filter, :find_all
645646

646647
def find_index(value=undefined)
647648
if undefined.equal? value

0 commit comments

Comments
 (0)