implement set operations on dict

This commit is contained in:
Folkert 2022-07-13 11:33:39 +02:00
parent 8e21fdcb04
commit cf69d41a7b
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 27 additions and 20 deletions

View file

@ -1315,12 +1315,11 @@ define_builtins! {
10 DICT_KEYS: "keys"
11 DICT_VALUES: "values"
12 DICT_UNION: "union"
13 DICT_INTERSECTION: "intersection"
14 DICT_DIFFERENCE: "difference"
12 DICT_INSERT_ALL: "insertAll" // union
13 DICT_KEEP_SHARED: "keepShared" // intersection
14 DICT_REMOVE_ALL: "removeAll" // difference
15 DICT_GET_LOWLEVEL: "getLowlevel"
16 DICT_WITH_CAPACITY: "withCapacity"
15 DICT_WITH_CAPACITY: "withCapacity"
}
8 SET: "Set" => {
0 SET_SET: "Set" // the Set.Set type alias