15 now you try


#1

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..


#2

Missing argument:

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

#3

okay..my bad..thanks :smile:


#4

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


#5