Ruby - Enumerable and Collection Processing
What does the Ruby method
map return when called on an array?map return when called on an array?mapmap method applies the given block to each element of the array.[1,2,3].map { |n| n*2 } returns [2,4,6] [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions