fork(1) download
  1. a = {a: 1, b: 2, c: 3}
  2. b = {a: 2, c: 4, b: 3}
  3. merged = a.merge!(b) { |k, o, n| o + n }
  4. p merged
Success #stdin #stdout 0s 28216KB
stdin
Standard input is empty
stdout
{:a=>3, :b=>5, :c=>7}