Skip to main content

Module combine

Module combine 

Source
Expand description

Multi-dep combinator operators (Slice C-2, D020).

Mirrors the TS shapes in ~/src/graphrefly-ts/packages/pure-ts/src/extra/operators/combine.ts, but driven by Core dispatch (graphrefly_core::OperatorOp) instead of derived-fn factories.

  • combine — N-dep combineLatest (any dep fire → emit packed tuple)
  • with_latest_from — 2-dep, fire-on-primary-only (Phase 10.5)
  • merge — N-dep, forward all DATA handles verbatim (zero FFI)

Structs§

MergeRegistration
Registration output for merge — no closure involved (zero FFI).

Functions§

combine
combine(...sources) — combineLatest semantics.
merge
merge(...sources) — forward all DATA handles verbatim (zero FFI).
merge_as_op
Convenience: merge with an explicit FnId return for API consistency. Since merge is zero-FFI, the FnId is a sentinel. Prefer merge unless you need the OperatorRegistration shape.
with_latest_from
with_latest_from(primary, secondary) — fire-on-primary-only.

Type Aliases§

PackerFn
Boxed packer closure type — converts N HandleIds to a single tuple HandleId.