Page History
...
일치하며 실제로 그래프와 동일하게 작동됩니다.
Fan-in/out 처리
...
Fan-out
Broadcast<T>
– (1 input, N outputs) given an input element emits to each outputBalance<T>
– (1 input, N outputs) given an input element emits to one of its output portsUnzipWith<In,A,B,...>
– (1 input, N outputs) takes a function of 1 input that given a value for each input emits N output elements (where N <= 20)UnZip<A,B>
– (1 input, 2 outputs) splits a stream of(A,B)
tuples into two streams, one of typeA
and one of typeB
Fan-in
Merge<In>
– (N inputs , 1 output) picks randomly from inputs pushing them one by one to its outputMergePreferred<In>
– likeMerge
but if elements are available onpreferred
port, it picks from it, otherwise randomly fromothers
MergePrioritized<In>
– likeMerge
but if elements are available on all input ports, it picks from them randomly based on theirpriority
ZipWith<A,B,...,Out>
– (N inputs, 1 output) which takes a function of N inputs that given a value for each input emits 1 output elementZip<A,B>
– (2 inputs, 1 output) is aZipWith
specialised to zipping input streams ofA
andB
into an(A,B)
tuple streamConcat<A>
– (2 inputs, 1 output) concatenates two streams (first consume one, then the second one)