Associative array/Merging: Difference between revisions

Content added Content deleted
Line 45: Line 45:


=={{header|MiniScript}}==
=={{header|MiniScript}}==
MiniScript supports merging maps with the `+` operator.
MiniScript supports merging maps with the + operator.
<lang MiniScript>base = {"name":"Rocket Skates", "price":12.75, "color":"yellow"}
<lang MiniScript>base = {"name":"Rocket Skates", "price":12.75, "color":"yellow"}
update = {"price":15.25, "color":"red", "year":1974}
update = {"price":15.25, "color":"red", "year":1974}