From 8cb5cda46cf3aef847ae3926dc53a5e5f87fe261 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 16 Apr 2014 23:57:50 -0500 Subject: All: move some fns to core. Major cleanup. - Don't import/require core until step4. - Define cond/or macros from step8 --- clojure/src/step3_env.clj | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'clojure/src/step3_env.clj') diff --git a/clojure/src/step3_env.clj b/clojure/src/step3_env.clj index 7358b49..cb634ff 100644 --- a/clojure/src/step3_env.clj +++ b/clojure/src/step3_env.clj @@ -57,11 +57,10 @@ [strng] (PRINT (EVAL (READ strng) repl-env))) -(defn _ref [k,v] (env/env-set repl-env k v)) -(_ref '+ +) -(_ref '- -) -(_ref '* *) -(_ref '/ /) +(env/env-set repl-env '+ +) +(env/env-set repl-env '- -) +(env/env-set repl-env '* *) +(env/env-set repl-env '/ /) (defn -main [& args] -- cgit v1.2.3