evalList function

dynamic evalList(
  1. Environment env,
  2. dynamic expr
)

Evaluate a cons of instructions.

Implementation

dynamic evalList(Environment env, dynamic expr) {
  dynamic result;
  while (expr is Cons) {
    result = eval(env, expr.head);
    expr = expr.tail;
  }
  return result;
}