Did you create an array called symbols?


#1

I run this code,

symbol_filter = lambda { |x| x.is_a? Symbol }
my_array.select(&symbol_filter)
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!
#2

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

symbols = my_array.select(&symbol_filter)

#3

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