evalArguments function

dynamic evalArguments(
  1. Environment env,
  2. dynamic args
)

The arguments evaluation function.

Implementation

dynamic evalArguments(Environment env, dynamic args) {
  if (args is Cons) {
    return Cons(eval(env, args.head), evalArguments(env, args.tail));
  } else {
    return null;
  }
}