Y
Hacker News
new
|
ask
|
show
|
jobs
by
sinkwool
1032 days 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.
1 comments
devoutsalsa
1032 days ago
The caching makes it faster the trade off being more using more memory. I just wanted to see if it’d work.
link