3 ms·
You don't need the `unless k.key? v` guard. The `Hash.new` block only gets called when the key is not present in the hash.
by sinkwool 3y ago
You don't need the `unless k.key? v` guard. The `Hash.new` block only gets called when the key is not present in the hash.
- devoutsalsa 3y agoThe caching makes it faster the trade off being more using more memory. I just wanted to see if it’d work.