This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Rubymonk Ruby Primer Exam Recap | |
#Problem 1 - Find the length of strings in an array | |
#Given an array containing some strings, return an array containing the length of those strings. | |
#Solution Option 1 map method | |
["Nike","adidas","New Balance"].map{ |x| x.length } | |
#Output |