How to append multiple key-value pairs to an existing Dict

Certainly no. :smiley: I just want to know whether there are more convenient (built-in) functions like push! and append!.

Anyway, I have learned some advanced techniques in all these answers. Thanks.
For now, I think the for loop is the best solution: intuitive and fast. (Also, no need to put the loop in one line just to make it look shorter :stuck_out_tongue_closed_eyes:)

2 Likes