Ruby - Blocks, Procs, and Lambdas
What will this code output?
hash = {a: 1, b: 2, c: 3}
new_hash = hash.map { |k, v| [k, v * 2] }.to_h
puts new_hash.inspect