Cold Help System: Programming: ColdC Reference Manual: Functions: Dictionary: dict_union()


DICTIONARY dict_union(DICTIONARY dict1, DICTIONARY dict2)

This function merges the two dictionaries by adding each association from dict2 into dict1. In the case of conflicts, the values in dict2 take precedence. Example:

dict_union(#[["foo", 1], ['baz, 3]], #[["foo", 2], ["bar", 2]])
=> #[["foo", 2], ['baz, 3], ["bar", 2]]


dict_add() | dict_contains() | dict_del() | dict_keys() | dict_union() | dict_values()


the Cold Dark