ObservableLists

Functions

Link copied to clipboard
fun <T, R, O> ObservableList<T>.combineLatest(transformer: (T) -> Observable<R>, aggregator: (List<R>) -> O): Observable<O>

Combines the content of an ObservableList into a single observable by applying a mapping function to each element and aggregating the results.

Link copied to clipboard
fun <T, O> ObservableList<T>.flatMap(transformer: (T) -> Observable<O>): Observable<Option<O>>

Transforms an ObservableList of type T into a single Observable of type arrow.core.Option<O> by fusing the individual observables obtained from each item in the list.

Link copied to clipboard

Converts this ObservableList of observables into a unique observable.

@JvmName(name = "flattenMergeObservables")
fun <T> flattenMerge(observables: ObservableList<out Observable<T>>): Observable<Option<T>>

Converts the given ObservableList of observables into a unique observable.

Link copied to clipboard
fun <T> observableListOf(vararg items: T): ObservableList<T>

Creates a new ObservableList and populates it with the specified items.