zipWith<S, R> method

Observable<R> zipWith<S, R>(
  1. Stream<S> other,
  2. R zipper(
    1. T t,
    2. S s

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


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


Observable<R> zipWith<S, R>(Stream<S> other, R zipper(T t, S s)) =>
    Observable<R>(ZipStream.zip2(_stream, other, zipper));