Posts by Hugo Abonizio • 11 points
1 post
-
1
votes2
answers51
viewsA: How to simplify the process of classifying a value-based hash
You can simplify your code using only native methods: agents = {"pedro" => 7, "lucas" => 12, "gabriel" => 15, "tadeu" => 4, "denis" => 22, "fabio" => 0} # => {"pedro"=>7,…