I get a error, although my code should be correct


#1



I am stucked at the "Now you try!" exercise in the "Blocks, Procs, Lambdas" Section.
Below is my code.
what did i get wrong? because at the consol i can see the array displayed with symbols only. :confused:


symbol_filter = lambda {|x| x.is_a? Symbol}
my_array.select(&symbol_filter)


#2

nevermind, found my mistake.
had to save my_array in the symbols variable


#3

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