Associative array/Merging: Difference between revisions

→‎{{header|Python}}: Used more explicit base.copy() instead of dict(base)
(added perl)
(→‎{{header|Python}}: Used more explicit base.copy() instead of dict(base))
Line 381:
update = {"price":15.25, "color":"red", "year":1974}
 
result = dict(base.copy()
result.update(update)
 
Anonymous user