Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sinkwool
· 3y ago · 0 comments
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.
Comments
[–]
devoutsalsa
3y ago
The caching makes it faster the trade off being more using more memory. I just wanted to see if it’d work.