RosettaCodeData/Task/Associative-array-Merging/FutureBasic/associative-array-merging.basic

14 lines
374 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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