is there any flow operator that filters unique val...
# coroutines
m
is there any flow operator that filters unique values ?
d
There is
distinctUntilChanged
. A `distinct`/`unique` filter would grow because it would have to cache all values...maybe
toSet
is an alternative for you? Otherwise a
distinct
can be implemented via
filter
m
yes, that was my approach, custom operator with a set. thanks
the emissions are few, so no problem in my case