Class ZipWithOperator
Extension methods implementing the zipWith operator.
public static class ZipWithOperator
- Inheritance
-
System.ObjectZipWithOperator
Methods
ZipWith<T>(Observable<T>, params Observable<T>[])
Subscribes to source and every one of otherSources, combining the
Nth value of each into a single emitted list, positionally. Pipeable-operator sugar over
Zip<T>(params Observable<T>[]) with source prepended:
source.ZipWith(a, b) is the same as Observable.Zip(source, a, b).
public static Observable<IReadOnlyList<T>> ZipWith<T>(this Observable<T> source, params Observable<T>[] otherSources)
Parameters
sourceObservable<T>The source sequence, zipped alongside
otherSources.otherSourcesObservable<T>[]The other sequences to zip with
source.
Returns
- Observable<IReadOnlyList<T>>
An observable that emits a list of the Nth value from
sourceand every one ofotherSources, in order.
Type Parameters
TThe type of values shared by
sourceandotherSources.
Remarks
Same-type-only, like Zip<T>(params Observable<T>[]) itself, rather than rxjs's heterogeneously-typed tuple result.