For each item from this observable, filter out repeated values and emit only items that have not already been emitted.
More...
For each item from this observable, filter out repeated values and emit only items that have not already been emitted.
- Returns
- Observable that emits those items from the source observable that are distinct.
- Note
- istinct keeps an unordered_set<T> of past values. Due to an issue in multiple implementations of std::hash<T>, rxcpp maintains a whitelist of hashable types. new types can be added by specializing rxcpp::filtered_hash<T>
- Sample Code
values.
[](int v){printf("OnNext: %d\n", v);},
[](){printf("OnCompleted\n");});
OnNext: 1
OnNext: 2
OnNext: 3
OnNext: 4
OnNext: 5
OnCompleted