Hackerrank Ruby - Enumerable - group_by Solution
Another function often used with data collections is one which groups the elements according to some evaluation result.
Consider the following example. Let's say you have a list of 100 integers and you want to group them according to their even and odd value.
In Ruby, you can