File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1139,7 +1139,7 @@ struct
11391139 let transpose_keys_and_data_set _ =
11401140 Misc. fatal_error " transpose_keys_and_data_set not yet implemented"
11411141
1142- let diff_domains _ _ = Misc. fatal_error " diff_domains not yet implemented "
1142+ let diff_domains = diff
11431143
11441144 let fold2_stop_on_key_mismatch _ _ _ _ =
11451145 Misc. fatal_error " fold2_stop_on_key_mismatch not yet implemented"
Original file line number Diff line number Diff line change @@ -363,12 +363,9 @@ end = struct
363363 if N.Map. is_empty map then Empty
364364 else Potentially_many map
365365 | Potentially_many map1 , Potentially_many map2 ->
366- let map =
367- N.Map. fold (fun name _ map -> N.Map. remove name map)
368- map2
369- map1
370- in
371- Potentially_many map
366+ let map = N.Map. diff_domains map1 map2 in
367+ if N.Map. is_empty map then Empty
368+ else Potentially_many map
372369
373370 let union t1 t2 =
374371 match t1, t2 with
You can’t perform that action at this time.
0 commit comments