liminal
04/08/2020, 12:26 PMmap
and filter
nesting should not be necessary. Any ideas how to improve it?
filterByStarCountChannel.asFlow()
.flatMapLatest { minStarCount ->
userReposRepository.getUserRepos(username)
.map { repoList ->
repoList.filter { it.stars >= minStarCount.stars }
}
}
Nico Buescher
04/08/2020, 1:34 PMliminal
04/08/2020, 2:10 PMNico Buescher
04/08/2020, 2:23 PMliminal
04/08/2020, 4:01 PM