https://kotlinlang.org logo
#coroutines
Title
# coroutines
m

myanmarking

03/17/2020, 11:16 AM
is there any flow operator that filters unique values ?
d

Dennis

03/17/2020, 11:39 AM
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

myanmarking

03/17/2020, 11:40 AM
yes, that was my approach, custom operator with a set. thanks
the emissions are few, so no problem in my case
8 Views