Split a sequence into two sequences based on the filter.
The first one of returned sequences contains items that pass the filter.
The other sequence contains the rest.
- Return type:
tuple
[tuple
[TypeVar
(_Item
), ...
], tuple
[TypeVar
(_Item
), ...
]]