HCoop
/
jackhill
/
mal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
plsql: add dockerfile. Lots of cleanup/renaming.
[jackhill/mal.git]
/
nim
/
step3_env.nim
diff --git
a/nim/step3_env.nim
b/nim/step3_env.nim
index
4726cb3
..
43f8581
100644
(file)
--- a/
nim/step3_env.nim
+++ b/
nim/step3_env.nim
@@
-22,6
+22,7
@@
proc eval_ast(ast: MalType, env: var Env): MalType =
proc eval(ast: MalType, env: var Env): MalType =
case ast.kind
of List:
+ if ast.list.len == 0: return ast
let
a0 = ast.list[0]
a1 = ast.list[1]