Bug?


#1



Blocks, Procs, and Lambdas: script.rb


I get the error message: "Oops, try again. Your symbols array should include kettles, but doesn't." Though my output is
kettles
mittens
packages

Is this a bug?


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

# Add your code below!
symbol_filter = lambda {|para| para.is_a? Symbol }
symbol = my_array.select(&symbol_filter)

puts symbol


#2

Did you try after refreshing your browser?


#3

Okay, that works!! Thanks!


#4

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