evalList function
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;
}
Evaluate a cons of instructions.
dynamic evalList(Environment env, dynamic expr) {
dynamic result;
while (expr is Cons) {
result = eval(env, expr.head);
expr = expr.tail;
}
return result;
}