Zip Streams component

Creates a single output stream from multiple input streams by aligning the events from each input stream.

https://kroki.io/svgbob/svg/eNpT0NNFBXpcCjUKClGZBQrBJUWpibnFCgo1QCE0VTVcuvkKhgpgkF9aUlBaopCvCxIzUkAGQJ1WCnp6eihCQFV56KrU0cxXBwCpFR5G

In-ports

1 ... n Any - two or more input streams to zip.

Out-ports

output Array - emits events with array of zipped values from the input streams.

Overview

Zip Streams component outputs a stream with values from input streams lined up with each other.

For example, if you have two input streams with a sequence of numerical values 1, 2, 3, and 4, 5, 6, 7, the output stream will issue [1, 4], [2, 5], and [3, 6]. The output stream will emit the next value only when it has at least one value from each input stream.

input1: -----0----1----2----3------->
input2: --------4-------5-------6--->
input3: 7----------------8----9----->
output: --------•--------•------•--->
[0,4,7] [1,5,8][2,6,9]

Set the number of input streams in the Settings dialog.

Note: This component sometimes is used incorrectly instead of Combine Streams. Please make sure you understand the difference and are making the right choice.

Settings

Number of input streams

Set the number of input ports. The default number is two.

Related

Learn More