General

Profile

hgraham (Harry Graham)

  • Login: hgraham
  • Registered on: 11/24/2022
  • Last sign in: 11/24/2022

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

11/24/2022

03:54 PM Ruby Feature #19148 (Open): Define Hash#merge_sum as Hash#merge with sum block
To merge two hashes whilst summing any common elements, we currently have to pass a block instructing how to add the elements from each hash:
```ruby
items_1_counts = {:book => 4, :pen => 2, :pencil => 3}
items_2_counts = {:book => 2,...
hgraham (Harry Graham)

Also available in: Atom