Posts by Pedro Charney • 11 points
1 post
-
1
votes2
answers51
viewsQ: How to simplify the process of classifying a value-based hash
Oops, I’m new to the site, and I’m new to Ruby. My question is: Is there a more efficient way to classify a hash according to the values? I did the code below, but I’m sure it’s not the most…