Type of elements within the source iterable.
extends TElement Type produced when predicate narrows an element.
The source iterable.
Type guard invoked for each element. Elements that satisfy the predicate populate the first partition.
A tuple containing the matching partition and the partition with the remaining elements.
source is fully enumerated immediately and buffered so both partitions can be iterated repeatedly without re-evaluating the predicate.
Splits the sequence into cached partitions using a boolean predicate.
Type of elements within the source iterable.
A tuple containing the elements that satisfied predicate and those that did not.
source is fully enumerated immediately and buffered so both partitions can be iterated repeatedly without re-evaluating the predicate.
Splits the sequence into cached partitions using a type guard predicate.