The iterable to filter.
Type guard invoked with each element and its zero-based index. Return true to keep the element in the results.
A deferred sequence containing only elements that satisfy the type guard.
Enumeration is lazy; predicate executes on demand and may be invoked again when consumers restart iteration.
Filters source using a predicate that can inspect both the element and its position.
Type of elements within source.
The iterable to filter.
Predicate invoked with each element and its zero-based index. Return true to keep the element in the results.
A deferred sequence containing only the elements that satisfy predicate.
Filters source using a type guard predicate and narrows the resulting element type.