store/[org.clojure/clojure "1.8.0"] clj::clojure.core/eval

Official Documentation

Add notes
Arities
==================================================
   [form]

Docstring
==================================================
  Evaluates the form data structure (not text!) and returns the result.

Source

(defn eval
  "Evaluates the form data structure (not text!) and returns the result."
  {:added "1.0"
   :static true}
  [form] (. clojure.lang.Compiler (eval form)))

Example 1

Edit
(def *foo* "(println [1 2 3])")
;; => #'user/*foo*

*foo*
;; => "(println [1 2 3])"

(eval *foo*)   ; Notice eval'ing a string does not work.
;; => "(println [1 2 3])"

(eval (read-string *foo*))
;; > [1 2 3]
;; => nil

Example 2

Edit
(eval '(let [a 10] (+ 3 4 a)))
;; => 17

Uses on crossclj