MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / diff_lists

Function diff_lists

Scripts/diff_schema.py:40–44  ·  view source on GitHub ↗

Returns (added, removed) items.

(old: list, new: list)

Source from the content-addressed store, hash-verified

38
39
40def diff_lists(old: list, new: list) -> tuple[list, list]:
41 """Returns (added, removed) items."""
42 old_set = set(old)
43 new_set = set(new)
44 return sorted(new_set - old_set), sorted(old_set - new_set)
45
46
47def diff_schemas(old: dict, new: dict) -> dict:

Callers 1

diff_schemasFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected