aboutsummaryrefslogtreecommitdiff
path: root/go/src/step2_eval
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-10-04 23:40:43 -0500
committerJoel Martin <github@martintribe.org>2014-10-04 23:40:43 -0500
commit9feb2c9527294d82592bf35b97f8039f61bbec45 (patch)
treead98f49352e56fe439b43385c4612aa337c1c095 /go/src/step2_eval
parent8b8afefc458810da516272d679b5a9de1f0daa17 (diff)
downloadmal-9feb2c9527294d82592bf35b97f8039f61bbec45.tar.gz
mal-9feb2c9527294d82592bf35b97f8039f61bbec45.zip
go: add step3_env
Diffstat (limited to 'go/src/step2_eval')
-rw-r--r--go/src/step2_eval/step2_eval.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/go/src/step2_eval/step2_eval.go b/go/src/step2_eval/step2_eval.go
index e82c360..31d6f64 100644
--- a/go/src/step2_eval/step2_eval.go
+++ b/go/src/step2_eval/step2_eval.go
@@ -70,6 +70,7 @@ func EVAL(ast MalType, env map[string]MalType) (MalType, error) {
default: return eval_ast(ast, env)
}
+ // apply list
el, e := eval_ast(ast, env)
if e != nil { return nil, e }
f, ok := el.(List).Val[0].(func([]MalType)(MalType, error))