Table of Contents

Class ZipWithOperator

Namespace
RxSharp.Operators
Assembly
RxSharp.dll

Extension methods implementing the zipWith operator.

public static class ZipWithOperator
Inheritance
System.Object
ZipWithOperator

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

source Observable<T>

The source sequence, zipped alongside otherSources.

otherSources Observable<T>[]

The other sequences to zip with source.

Returns

Observable<IReadOnlyList<T>>

An observable that emits a list of the Nth value from source and every one of otherSources, in order.

Type Parameters

T

The type of values shared by source and otherSources.

Remarks

Same-type-only, like Zip<T>(params Observable<T>[]) itself, rather than rxjs's heterogeneously-typed tuple result.