Discards the first items fulfilling the predicate from this observable emit them from the new observable that is returned.
More...
Discards the first items fulfilling the predicate from this observable emit them from the new observable that is returned.
- Template Parameters
-
Predicate | the type of the predicate |
- Parameters
-
- Returns
- An observable that discards the first items until condition emitted by the source Observable is not fulfilling the predicate, or all of the items from the source observable if the predicate never returns false
- Sample Code
return v <= 4;
});
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 5
OnNext: 6
OnNext: 7
OnNext: 8
OnCompleted