Closed kachick closed 2 years ago
$ ruby -v ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-darwin20]
{a: 1, b: 2, B: 3}.to_h { |key, value| [key.upcase, value.succ] } #=> {:A=>2, :B=>4}
Hash#to_h
TL;DR
経緯 / History
Hash#to_h
で良いのでは。