RosettaCodeData/Task/Associative-array-Merging/MiniScript/associative-array-merging.mini

7 lines
156 B
Plaintext

base = {"name":"Rocket Skates", "price":12.75, "color":"yellow"}
update = {"price":15.25, "color":"red", "year":1974}
result = base + update
print result