Is there a built-in factory method to create an `O...
# rx
k
Is there a built-in factory method to create an
Observable
that behaves differently everytime it's subscribed to? I came up with the following 4-liner but was wondering if I'm missing an official way
Copy code
fun <T> fromBehaviors(vararg o: Observable<T>): Observable<T> {
    var counter = 0
    return Observable.defer { o[counter++] }
}