https://kotlinlang.org logo
#rx
Title
e

erickoknl

04/21/2017, 12:51 PM
But this does not compile as `flatMapIterable`requires an Iterable. Instead:
Copy code
fun <T> Flowable<Array<T>>.flatten(): Flowable<T> {
    return this.flatMapIterable { items -> Arrays.asList(*items) }
}
works fine.