The Ruby library includes the module Enumerable. This library contains map(), reduce(), select() , and other functions. This section will outline the syntax and meanings of the different parts of code that use these three functions.
If you can get through this section comfortably, both typing the code into irb and understanding the results, then you will be in a good position to deepen your understanding with the complex examples and reverse engineering that follow in the next chapters.
Map
This function of the Ruby Enumerable library is simple but profound. The map() method is applied ...