Breaking changes: Make update
match the behavior of Dict.update
:
- Previously, if the mapping function passed to
update
returnedNothing
, it would not change the value of the matching key. Now, it deletes it. - Previously, if there was no matching value but the mapping function returned something anyways, nothing would change. Now, it adds the key-value pair to the dictionary.