Is there an operator to go from `List<Flow<A...
# coroutines
l
Is there an operator to go from
List<Flow<A>>
to
Flow<List<A>>
? I’m currently applying the following:
Copy code
.flatMapLatest { items: List<Flow<A>> ->
  combineTransform(items) {
    emit(it.toList())
  }
}
but am wondering if this is common enough and/or is handled in a better way with a different operator.
w
Maybe just
combine(items) { it.toList() }
? I don’t know any simpler method
☝️ 1
p
Beware: if your list is empty there is no emission!
👍 1
We wrote a lint check that forbids the combine iterable function and have a custom flow that emits an empty list
This one did hit us pretty badly.
l
thanks 😊