RosettaCodeData/Task/Associative-array-Merging/Crystal/associative-array-merging.crystal
2023-07-01 13:44:08 -04:00

4 lines
163 B
Text

base = {"name" => "Rocket Skates", "price" => 12.75, "color" => "yellow"}
update = { "price" => 15.25, "color" => "red", "year" => 1974 }
puts base.merge(update)