Oops, try again. Your code doesn't look quite right. Check the Hint if you need help!


It says to: Create a new variable called symbols, and store the result of calling my_array.select and passing it your lambda.
Can you check my code below:

Replace this line with your code.

my_array = ["raindrops", :kettles, "whiskers", :mittens, :packages]

Add your code below!

symbol_filter = lambda {|x| x.is_a?}


Is this what you meant to write?

symbol_filter = lambda { |x| x.is_a? Symbol }


Why is there a Symbol after x.is_a? ?


It's like an if conditional.

If x is a member of the Symbol class then append it to the return array..


A post was split to a new topic: Did you create an array called symbols?