I'm most excited for <i>Enumerable#tally</i> for counting occurrences of elements.<p>From the example in the release:<p><pre><code> ["a", "b", "c", "b"].tally
#=> {"a"=>1, "b"=>2, "c"=>1}
</code></pre>
There's more about this change here (<a href="https://medium.com/@baweaver/ruby-2-7-enumerable-tally-a706a5fb11ea" rel="nofollow">https://medium.com/@baweaver/ruby-2-7-enumerable-tally-a706a...</a>). I probably do this a few times a week:<p><pre><code> list.each_with_object(Hash.new(0)) { |v, h| h[v.something] += 1 }</code></pre>