Skip to main content

evaluate_with_binding

Function evaluate_with_binding 

Source
pub fn evaluate_with_binding(
    expr: &ValueExpr,
    variables: &HashMap<String, Value>,
    var: &str,
    value: &Value,
) -> Result<Value, ExecutionError>
Expand description

Evaluate an expression with an extra variable binding. Creates a merged scope with the new binding and evaluates.