Is there a way to convert a Clojure form to a string? E.g. convert:
(and (f 1) (g 3))
to:
"(and (f 1) (g 3))"
You can do this:
(str '(and (f 1) (g 3)))
EDIT
In case you're not familiar with it, the ' ("quote") character is a reader macro character (more) that escapes code -- i.e. keeps it from being evaluated.
You could also set a variable:
(def x '(and (f 1) (g 3)))
(str x)
and then if you wanted to run the code you could eval it.