list_exclude

hhpy.main.list_exclude(lst: Union[Sequence[T_co], int, float, str, bytes, None, AbstractSet[T_co]], *args) → list[source]

Returns a list that includes only those elements from the first list that are not in any subsequent list. Can also be called with non list args, then those elements are removed.

Parameters:
  • lst – the list to exclude from
  • args – the subsequent lists
Returns:

the filtered list