The source iterable.
Type guard invoked for each element and its zero-based index; iteration halts immediately when it returns true.
A deferred sequence containing the contiguous prefix produced before predicate succeeds.
Elements after the first element satisfying predicate are not inspected.
Returns consecutive leading elements until a predicate returns true, then stops.
Type of elements within source.
The source iterable.
Predicate invoked for each element and its zero-based index; iteration halts immediately when it returns true.
A deferred sequence containing the contiguous prefix produced before predicate succeeds.
Elements after the first element satisfying predicate are not inspected.
Returns consecutive leading elements until a type guard predicate returns
true, then stops.