A, B, C, D, T> static method
Merges the specified streams into one stream sequence using the given zipper function whenever all of the stream sequences have produced an element at a corresponding index.
It applies this function in strict sequence, so the first item emitted by the new Stream will be the result of the function applied to the first item emitted by Stream #1 and the first item emitted by Stream #2; the second item emitted by the new ZipStream will be the result of the function applied to the second item emitted by Stream #1 and the second item emitted by Stream #2; and so forth. It will only emit as many items as the number of items emitted by the source Stream that emits the fewest items.
Rx.zip4( Stream.value('a'), Stream.value('b'), Stream.value('c'), Stream.fromIterable(['d', 'dropped']), (a, b, c, d) => a + b + c + d) .listen(print); //prints 'abcd'
static Stream<T> zip4<A, B, C, D, T>( Stream<A> streamA, Stream<B> streamB, Stream<C> streamC, Stream<D> streamD, T Function(A a, B b, C c, D d) zipper) => ZipStream.zip4(streamA, streamB, streamC, streamD, zipper);