eval_atom

Function eval_atom 

Source
pub fn eval_atom(atom: &Atom, ctx: &Context) -> CalcResult
Expand description

Evaluate an atom in ctx. If atom is a number, return that number. If atom is a symbol, return the value bound to the symbol. If the symbol is not bound in ctx, return CalcError::NameNotFound.