RosettaCodeData/Task/Associative-array-Merging/ArkScript/associative-array-merging.ark

15 lines
244 B
Text
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
(import std.Dict)
(let base (dict
"name" "Rocket Skates"
"price" "12.75"
"color" "yellow"))
(let update (dict
"price" "15.25"
"color" "red"
"year" "1974"))
(mut result (dict:copy base))
(dict:update! result update)
(print result)