15 now you try

my_array = [“raindrops”, :kettles, “whiskers”, :mittens, :packages]
symbol_filter = lambda {|x| x.is_a?}
symbols = my_array.select(&symbol_filter)

it shows error “wrong no of arguments” …m not able to figure out wtz wrong here…

Missing argument:

    symbol_filter = lambda {|x| x.is_a?Symbol}
4 Likes

okay…my bad…thanks :slight_smile:

A post was split to a new topic: Undefined local variable