Is there an operator that emits items if the item to be emitted is not equal the last emitted item?
There is distinctUntilChanged()
.
RxJava also implements the distinctUntilChanged operator. It only compares emitted items from the source Observable against their immediate predecessors in order to determine whether or not they are distinct.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With