Search code examples
clojureevalmetaprogrammingevaluation

How do you evaluate a string as a clojure expression?


How would I get something similar to the following?:

(evaluate-text "(+ 1 2)")  ; resolves to 3

Solution

  • (load-string "(+ 1 2)")