Comma separated String values from vector

2013-07-16 Thread sunilmuvas
Hi All, I'm new to Clojure - I'm defining a vector containing string values. The requirement for me is to retrieve the String values separated by comma from the input vector. Example: => (def my-strings ["one" "two" "three"]) ;; My expected output should be ;; *"one", "two", "three"* I tr

Re: Comma separated String values from vector

2013-07-16 Thread sunilmuvas
Thanks everyone for contributing. => (clojure.string/join "," (map #(str \" % \") my-strings)) works perfectly for my case and that will do for now. /Sunil. On Tuesday, July 16, 2013 3:52:03 PM UTC+1, Luc wrote: > > I assume here that the strings are already escaped. Which might not be > true