I'm using `distinctUntilChanged` and it does what ...
# getting-started
c
I'm using
distinctUntilChanged
and it does what it says on the tin... but I was wondering if there's any way to do
distinctUntilChanged
for not just the last emission... but the last two emissions. example: I keep getting emits of A > B > A > B > A > B, etc. I just want that to be recorded as one emit for each. Is that possible?
Maybe what I actually want is a debounce... hm
j
You could use runningFold to emit Pairs, then use
distinctUntilChanged
c
interesting. ill take a look