Difficulty:
Easy
Easy
Tags:
ruby 1.9, enumerables
ruby 1.9, enumerables
Instructions:
ne of our favorite methods in Ruby 1.9 is each_with_object. It works much like inject. Use each_with_object to return an array containing one reversed string for each string that has an even number of characters.
ne of our favorite methods in Ruby 1.9 is each_with_object. It works much like inject. Use each_with_object to return an array containing one reversed string for each string that has an even number of characters.
Problem and Solution:
No comments:
Post a Comment