The Curious Case of the Missing Method Part 2

Difficulty:
Elementary

Tags:
enumerables

Instructions:
Fill in the missing method. Hint: find the right six-letter enumerable method: http://ruby-doc.org/core-1.9.3/Enumerable.html. There's also a four-letter alias for the method too.

Code:
assert_equal [1, 3, 7, 4, 9, 8].___(&:even?), 4

Your Solution

Ruby 1.9.3

Back to Problems