Associative array/Merging: Difference between revisions
FutureBasic solution added
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
(FutureBasic solution added) |
||
Line 607:
}
</pre>
=={{header|FutureBasic}}==
<syntaxhighlight lang="futurebasic">
void local fn DoIt
CFDictionaryRef base = @{@"name" :@"Rocket Skates", @"price":@12.75, @"color":@"yellow"}
CFDictionaryRef update = @{@"price":@15.25, @"color":@"red", @"year":@1974}
CFMutableDictionaryRef merged = fn MutableDictionaryWithDictionary( base )
MutableDictionaryAddEntriesFromDictionary( merged, update )
print merged
end fn
fn DoIt
HandleEvents
</syntaxhighlight>
=={{header|Go}}==
|