Skip to content
PACKAGES

operators.last

Kind: function

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

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

Send the last DATA, or the last for which p held, with COMPLETE in one array when src completes; p is called for every DATA as it comes (O-last).

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