Paul Woitaschek
05/02/2019, 8:36 AMconcatWith
for Flow?Paul Woitaschek
05/02/2019, 8:38 AMkotlin
fun <T> Flow<T>.concatWith(other: Flow<T>): Flow<T> {
return flow {
collect { emit(it) }
other.collect { emit(it) }
}
}
octylFractal
05/02/2019, 8:39 AMflattenConcat
but I think the general idea is to not add too many operators to the core API, and leave them as separate libraries that can be includeddewildte
05/04/2019, 6:37 PMmerge
function that takes a vararg
of Flow<T>
and outputs a new Flow<T>
I guess I will have to write my own.Paul Woitaschek
05/05/2019, 12:34 PM