Skip to content

Commit 96e8b65

Browse files
committed
Implement Enumerator::Lazy#filter.
1 parent 31bb7e1 commit 96e8b65

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

spec/tags/core/enumerator/lazy/filter_tags.txt

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ def select
379379
end
380380
end
381381
alias_method :find_all, :select
382+
alias_method :filter, :select
382383

383384
def reject
384385
raise ArgumentError, 'Lazy#reject requires a block' unless block_given?

0 commit comments

Comments
 (0)