zip()
zip: combine one value from EACH dep, in lockstep, into a tuple — buffering per-dep queues until
every dep has at least one queued value, then shifting one from each. partial:true +
ctx.state queues. Completes as soon as ANY dep is terminal AND its queue is empty (no further
tuple can form) — completeWhenDepsComplete:false + terminalAsRealInput:true. Any dep ERROR
propagates (default errorWhenDepsError).
Import
Section titled “Import”import { zip } from "@graphrefly/ts/operators";Signature
Section titled “Signature”function zip(): Operator<unknown, T>Returns
Section titled “Returns”A Operator<unknown, T> value.
Example
Section titled “Example”import { zip } from "@graphrefly/ts/operators";Source
Section titled “Source”packages/ts/src/graph/combinators.ts