mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
5 lines
127 B
Ruby
5 lines
127 B
Ruby
|
grep_data = (1..10).to_a * 1000
|
||
|
N = 100
|
||
|
enum = grep_data.lazy.grep_v(->(i){i > 2}).grep_v(->(i){i > 2})
|
||
|
N.times {enum.each {}}
|