pruneAst
pruneAst(
options):AST
pruneAst prunes the given AST based on EvalState and returns a copy-on-write residual AST.
Typical uses include repeatedly evaluating an expression with unknowns while caching known function results, or constant-folding a compiled expression before storing it in a cache.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”AST