What does this |_ mean in Ruby?

Viewed 2396

In this code:

arr.select.each_with_index { |_, i| i.even? }

what does pipe underscore mean?

3 Answers
Related