Did you create an array called symbols?


I run this code,

symbol_filter = lambda { |x| x.is_a? Symbol }
But I'm receiving an error(Oops, try again. Did you create an array called symbols?)

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

That line needs to be part of an assignment to the, symbols array.

symbols = my_array.select(&symbol_filter)


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.