RosettaCodeData/Task/Associative-array-Merging/11l/associative-array-merging.11l

8 lines
248 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
V base = [name = Rocket Skates, price = 12.75, color = yellow]
V update = [price = 15.25, color = red, year = 1974]
V result = copy(base)
result.update(update)
print(result)