concatMap()
concatMap: project each source value to an inner, but run AT MOST ONE inner at a time — queue later source values (lazy projection) and activate the next only when the active inner COMPLETEs. Preserves source order.
Import
Section titled “Import”import { concatMap } from "@graphrefly/ts/operators";Signature
Section titled “Signature”function concatMap(project: Project<TIn, TOut>): Operator<TIn, TOut>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
project | Project<TIn, TOut> | project value used by the helper. |
Returns
Section titled “Returns”A Operator<TIn, TOut> value.
Example
Section titled “Example”import { concatMap } from "@graphrefly/ts/operators";Source
Section titled “Source”packages/ts/src/graph/higher-order.ts