Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.07 KB

File metadata and controls

43 lines (27 loc) · 1.07 KB

description: project selects a subtree of an expression.

Module: expression_impl.project

View source on GitHub

project selects a subtree of an expression.

project is often used right before calculating the value.

Example:

expr = ...
new_expr = project.project(expr, [path.Path(["foo","bar"]),
                                  path.Path(["x", "y"])])
[prensor_result] = calculate.calculate_prensors([new_expr])

prensor_result now has two paths, "foo.bar" and "x.y".

Functions

project(...): select a subtree.