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

Thursday, January 17, 2013

Codecademy Sample Solution: Lambda Syntax



strings = ["leonardo", "donatello", "raphael", "michaelangelo"]
# Write your code below this line!

symbolize = lambda { |element| element.to_sym }

# Write your code above this line!
symbols = strings.collect(&symbolize)

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts