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)) =>
    Observable<R>(ZipStream.zip2(_stream, other, zipper));