[Enumerable][enumerable] is a mixin that is used to add additional functionality
to collection classes like Array
and Hash
. This means that you can use the
methods defined in Enumerable
on both arrays and hashes.
[Enumberable#map][map] is useful when you want to create a new array by iterating over some collection of values, and calculate a new value based on