user=> (def *foo* "(println [1 2 3])") #'user/*foo* user=> *foo* "(println [1 2 3])" user=> (eval *foo*) ; Notice eval'ing a string does not work. "(println [1 2 3])" user=> (eval (read-string *foo*)) [1 2 3] nil
(defn eval
"Evaluates the form data structure (not text!) and returns the result."
{:added "1.0"
:static true}
[form] (. clojure.lang.Compiler (eval form)))
Comments top
No comments for eval. Log in to add a comment.