Skip to content
PACKAGES

operators.take_while

Kind: function

Source: src/graphrefly/operators/_select.py:178

take_while(g: Graph, src: Node[Any], p: Predicate, *, name: str | None = None, recipe: Recipe | None = None)

Send DATA while p holds and complete at the first for which it does not, without sending that one; p is not called again (O-takeWhile).

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