The source iterable.
Type guard evaluated for each element until it first returns false.
A tuple containing the contiguous matching prefix and the remainder of the sequence.
Splits the sequence into the maximal leading span that satisfies a predicate and the remaining elements.
Type of elements within the source iterable.
A tuple containing the contiguous matching prefix and the remainder of the sequence.
Splits the sequence into the maximal leading span that satisfies a type guard and the remaining elements.