Replace an element already found inside the given AfDalList with the given new_value.
Inserts a new key and value into the given AfDalList similar to afdal_list_insert.
The difference is that if the key already exists in the AfDalList, its value gets replaced by the new_value.
If you supplied a value_destroy_func when creating the AfDalList, the old value is freed using that function. If you supplied a key_destroy_func when creating the AfDalList, the old key is freed using that function.
|list ||An AfDalList. |
|key ||The key to insert. |
|new_value ||The value corresponding to the key. |