operators.take_while
operators.take_while
Section titled “operators.take_while”Kind: function
Source: src/graphrefly/operators/_select.py:178
Signature
Section titled “Signature”take_while(g: Graph, src: Node[Any], p: Predicate, *, name: str | None = None, recipe: Recipe | None = None)Description
Section titled “Description”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.