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