zipWith<S, R> method

Observable<R> zipWith <S, R>(Stream<S> other, R zipper(T t, S s))

Returns an Observable that combines the current stream together with another stream using a given zipper function.

Example

new Observable.just(1)
    .zipWith(new Observable.just(2), (one, two) => one + two)
    .listen(print); // prints 3

Implementation

Observable<R> zipWith<S, R>(Stream<S> other, R zipper(T t, S s)) =>
    new Observable<R>(
        new ZipStream<R, T, S, Null, Null, Null, Null, Null, Null, Null>(
            <Stream<dynamic>>[stream, other],
            (
                    [T a,
                    S b,
                    Null c,
                    Null d,
                    Null e,
                    Null f,
                    Null g,
                    Null h,
                    Null i]) =>
                zipper(a, b)));