get_missing_items#

caf.toolkit.toolbox.get_missing_items(list_a, list_b)[source]#

Get a list of the items in each list, but not the other.

Only works on lists of unique items!

Parameters:
  • list_a (list[_T]) – The first list to check.

  • list_b (list[_T]) – The second list to check.

Returns:

  • a_not_b – A list of the items in list_a but not list_b.

  • b_not_a – A list of the items in list_b but not list_a.

Return type:

tuple[list[_T], list[_T]]