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:
parent
cf500f7da6
commit
1af7aff165
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user