Re: How to convert a string to a data structure

2011-05-26 Thread ron peterson
Thank you everyone for the solution. Ron. On May 25, 6:24 pm, Luc Prefontaine wrote: > Use: > > (read-string (read-string "[{:a \"blah\" :b 23} {:d 34 :c \"hello\"}]") > > I believe your expression is wrong, (:d should be {:d. > > Luc P. > > On Wed, 25 May 2011 18:04:11 -0700 (PDT) > > ron peter

Re: How to convert a string to a data structure

2011-05-25 Thread Luc Prefontaine
Use: (read-string (read-string "[{:a \"blah\" :b 23} {:d 34 :c \"hello\"}]") I believe your expression is wrong, (:d should be {:d. Luc P. On Wed, 25 May 2011 18:04:11 -0700 (PDT) ron peterson wrote: > Hi, > > If I have a following string for example: > > [{:a "blah" :b 23}(:d 34 :c "hello"

Re: How to convert a string to a data structure

2011-05-25 Thread Miki
read-string -- 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 em

Re: How to convert a string to a data structure

2011-05-25 Thread Ken Wesson
On Wed, May 25, 2011 at 9:04 PM, ron peterson wrote: > Hi, > > If I have a following string for example: > > [{:a "blah" :b 23}(:d 34 :c "hello"}] > > how can I convert it to a clojure data structure? => (read-string "[{:a \"blah\" :b 23}{:d 34 :c \"hello\"}]) [{:a "blah" :b 23}{:d 34 :c "hello"}

How to convert a string to a data structure

2011-05-25 Thread ron peterson
Hi, If I have a following string for example: [{:a "blah" :b 23}(:d 34 :c "hello"}] how can I convert it to a clojure data structure? Thanks, Ron. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googleg