I wrote an extension function to flatten a Flowabl...
# rx
e
I wrote an extension function to flatten a Flowable<Array<T>> to Flowable<T> (list of T flatmapped to elements of T):
Copy code
fun <T> Flowable<Array<T>>.flatten2(): Flowable<T> {
    return this.flatMapIterable { items -> items }
}