Observable Lists
object ObservableLists
Set of useful extensions on it.unibo.alchemist.model.observation.ObservableList.
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
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.
Converts the given ObservableList of observables into a unique observable.
Link copied to clipboard
Creates a new ObservableList and populates it with the specified items.