Skip to main content

expand_program_functions

Function expand_program_functions 

Source
pub fn expand_program_functions(
    program: &Program,
    max_depth: u32,
) -> Result<Program, FunctionError>
Expand description

Expand all user-defined function calls in a program. Returns a new program with all UDF calls replaced by their expanded bodies. Expand all user-defined function calls in the program to inline arithmetic.