Re: string to S-value

2012-01-10 Thread Armando Blancas
user=> (first (read-string x)) a On Jan 10, 12:36 pm, Bartek 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

Re: string to S-value

2012-01-10 Thread Jay Fields
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 wrote: > hello everyone, > > It's true that: > > (first '(a b)) > is: > a > > And now I have: >

string to S-value

2012-01-10 Thread Bartek
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 mess