Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, January 17, 2013

Codecademy Sample Solution: Now You Try!



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

# Add your code below!

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

symbols = my_array.select(&symbol_filter)

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts