For each item from this observable use Predicate to select which items to emit from the new observable that is returned.
More...
For each item from this observable use Predicate to select which items to emit from the new observable that is returned.
- Template Parameters
-
Predicate | the type of the filter function |
- Parameters
-
- Returns
- Observable that emits only those items emitted by the source observable that the filter evaluates as true.
- Sample Code
return v % 2;
});
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 1
OnNext: 3
OnNext: 5
OnCompleted