read-string+eval or load-string should do the trick. http://blog.jayfields.com/2011/03/clojure-eval-ing-string-in-clojure.html
Cheers, Jay Sent from my iPad On Jan 10, 2012, at 3:36 PM, Bartek <krupa.bart...@gmail.com> wrote: > hello everyone, > > It's true that: > > (first '(a b)) > is: > a > > And now I have: > > (def x "(a b)") > > How can I use 'x' as S-expression like in the example above? > > (first (>>some-functions<< x)) > and should give: > a > > again. What should I put in 'some-functions' place? > > regards, > Bartek > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en