For each item from this observable use Selector to produce an item to emit from the new observable that is returned.
More...
For each item from this observable use Selector to produce an item to emit from the new observable that is returned.
- Template Parameters
-
Selector | the type of the transforming function |
- Parameters
-
- Returns
- Observable that emits the items from the source observable, transformed by the specified function.
- Sample Code\n
return 2 * v;
});
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 2
OnNext: 4
OnNext: 6
OnCompleted