1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 13:55:55 +03:00

process: Fix step2_eval.txt to "handle" empty literal lists

This commit is contained in:
Dov Murik 2016-04-02 23:18:30 -04:00
parent cf500f7da6
commit 1af7aff165

View File

@ -12,6 +12,7 @@ eval_ast(ast,env):
EVAL(ast,env):
if not list?(ast): return eval_ast(ast, env)
if empty?(ast): return ast
f, args = eval_ast(ast, env)
return apply(f, args)