(apply str (interpose "," (map #(str "\"" % "\"") [...])))
Not the most efficient way but short.
Luc P.
> 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 tried interpose and join as below
>
> => (apply str (interpose "," my-strings))
>
> => (clojure.string/join "," my-strings)
>
> both returning as "one,two,three" but I need each string surrounded by
> double quotes "" like in my example example.
>
> /Sunil.
>
>
>
>
>
Softaddicts<
lprefo...@softaddicts.ca> sent by ibisMail from my ipad!