beamlime.constructors.providers.split_sequence_by_filter#

beamlime.constructors.providers.split_sequence_by_filter(filter_func, sequence)[source]#

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), ...]]