This is a codecademy bug or what?making a lambda


#1



i made this lambda work and it says it didn't!WHY?

`

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

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

it puts to me [:kettles, :mittens, :packages]
which is what it should do, and codecademy says:

at it doesn't include "kettles" but it should,

effort much appreciated


#2

I am having this precise problem myself.


#3

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