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
/
step4_if_fn_do.m
diff --git
a/matlab/step4_if_fn_do.m
b/matlab/step4_if_fn_do.m
index
d4f2406
..
05cab71
100644
(file)
--- a/
matlab/step4_if_fn_do.m
+++ b/
matlab/step4_if_fn_do.m
@@
-40,6
+40,10
@@
function ret = EVAL(ast, env)
end
% apply
+ if length(ast) == 0
+ ret = ast;
+ return;
+ end
if isa(ast.get(1),'types.Symbol')
a1sym = ast.get(1).name;
else