HCoop
/
jackhill
/
mal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
matlab: fix empty list evaluation.
[jackhill/mal.git]
/
matlab
/
stepA_mal.m
diff --git
a/matlab/stepA_mal.m
b/matlab/stepA_mal.m
index
bb3b09e
..
8883ac8
100644
(file)
--- a/
matlab/stepA_mal.m
+++ b/
matlab/stepA_mal.m
@@
-83,6
+83,10
@@
function ret = EVAL(ast, env)
end
% apply
+ if length(ast) == 0
+ ret = ast;
+ return;
+ end
ast = macroexpand(ast, env);
if ~type_utils.list_Q(ast)
ret = eval_ast(ast, env);