fold
fold(
bindings):Optimizer
Defined in: packages/aip/src/filtering/fold.ts:167
Creates an optimizer that substitutes ident nodes with constant values, then evaluates any call expression whose arguments are all constants. Runs iteratively until no further reductions are possible (up to 10 passes).
Parameters
Section titled “Parameters”bindings
Section titled “bindings”Record<string, FoldValue>