Represents a predicate function that both narrows the type of its input and tracks the element index.
The broader type of the value being evaluated.
The narrower subtype asserted when the predicate returns true.
true
The value under test, belonging to the broader type T.
T
The zero-based index of the value within the source iterable.
A type guard asserting that x is of subtype S.
x
S
Represents a predicate function that both narrows the type of its input and tracks the element index.