How to update Associative Array?

novice2 sorry at noem.ail
Thu Feb 10 13:42:08 UTC 2022


On Thursday, 10 February 2022 at 12:08:07 UTC, tastyminerals 
wrote:
> I meant a different thing though. I am looking for 
> `mydic.update(another_dic)` analogue where `{"a": 1, "b": 2}` 
> update `{"c": 3, "a": -1}` becomes `{"a":-1, "b": 2, "c": 3}`.

you need "merge"?
https://forum.dlang.org/post/fhhuupczjnhehxpljxrj@forum.dlang.org



More information about the Digitalmars-d-learn mailing list