Skip to main content

eval

Function eval 

Source
pub fn eval(
    expr: &Expr,
    env: &Env,
    config: &EvalConfig,
) -> Result<Literal, ExprError>
Expand description

Evaluate an expression in the given environment.

ยงErrors

Returns ExprError on type mismatches, unbound variables, step/depth limit exceeded, or runtime errors.