Next: dict_add_elem

dict_add

dict_add(dictionary, key, value)
This function returns the result of adding the association [key, value] to the dictionary dictionary. If key already exists in dictionary, then dict_add() replaces the value of that key with value.

Examples:

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