compile/evaluate
Syntax: (evaluate FORM), (evaluate FORM NS)
Behaviour: Expands to a call to the
evaluate runtime function, which compiles
FORM if it is not already compiled and runs it in the namespace,
returning the value. With one argument the namespace is (vars);
with two, the given namespace, which is a Koskari namespace or module
rather than a plain dict. FORM is evaluated, so quote a literal form.
Examples:
>>> (evaluate '(+ 1 2))
3
>>> (var x 4)
>>> (evaluate '(* 2 x) (globals))
8
See also: compileq to compile without
running, get-compiler.
Also: function evaluate.