Stream: contributing

Topic: Behaviour of Dictionary merging


view this post on Zulip Luke Boswell (Oct 25 2022 at 06:31):

Is there a rule that the Dict.insertAll aka union, and the Dict.keepShared aka intersection use to merge values with the same key? I've been playing around in REPL and it looks like it keeps the values from the first Dict. Just want to confirm it's this simple to explain to users?

Union
Intersection

view this post on Zulip Brendan Hansknecht (Oct 25 2022 at 14:04):

#ideas > Weird Dict functions

view this post on Zulip Brendan Hansknecht (Oct 25 2022 at 14:05):

I commented about this some elsewhere.


Last updated: Jul 06 2025 at 12:14 UTC