Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 1.56 KB

File metadata and controls

74 lines (56 loc) · 1.56 KB

description: select a subtree.

expression_impl.project.project

View source on GitHub

select a subtree.

expression_impl.project.project(
    expr: expression.Expression,
    paths: Sequence[path.Path]
) -> expression.Expression

Paths not selected are removed. Paths that are selected are "known", such that if calculate_prensors is called, they will be in the result.

Args

`expr` the original expression.
`paths` the paths to include.

Returns

A projected expression.