user=> (use 'clojure.string) WARNING: replace already refers to: #'clojure.core/replace in namespace: user, being replaced by: #'clojure.string/replace WARNING: reverse already refers to: #'clojure.core/reverse in namespace: user, being replaced by: #'clojure.string/reverse nil
user=> (join "&" (map #(str (name (key %)) '= (val %)) {:apple 1 :cherry "red" :banana "yellow"})) "apple=1&cherry=red&banana=yellow" On Oct 8, 3:09 pm, Paul <paul_bow...@yahoo.com> wrote: > Hi all, > > I'm trying to parse a map unto a URI string, e.g: > > {:apple "green", :cherry "red", :banana "yellow"} into > "apple=green&cherry=red&banana=yellow" > > I've almost got there by several routes, but is there a 'preferred' > idiomatically correct way to perform this? > > What are the advantages of, say, using recursion over sequences? > > Many thanks, > > P. -- 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