Computes the difference between two ISet instances, identifying added and
deleted elements.
This function performs a set difference operation to determine what
elements were added and what elements were deleted when transitioning from
the old set to the new set. This is useful for change detection, state
management, and synchronization scenarios.
Performance: O(n + m) where n and m are the sizes of the old and new
sets respectively.
Computes the difference between two ISet instances, identifying added and deleted elements.
This function performs a set difference operation to determine what elements were added and what elements were deleted when transitioning from the old set to the new set. This is useful for change detection, state management, and synchronization scenarios.
Performance: O(n + m) where n and m are the sizes of the old and new sets respectively.