Skip to content
PACKAGES

operators.exhaust_map

Kind: function

Source: src/graphrefly/operators/_higher_order.py:257

exhaust_map(g: Graph, outer: Node[Any], project: Callable[[Any], Any], *, name: str | None = None, recipe: Recipe | None = None)

Project an outer value only when no inner is held, and ignore the outer values that arrive while one is (O-exhaustMap).

The behavior is the root’s operator contract: the operator contracts.