On Mon, Aug 1, 2011 at 3:47 PM, Brad <b...@beaconhill.com> wrote: > ;; My test input map > (def input {:a 1 :b 2 :c 3 :d 4}) ... > Is there a simpler, better way to do this?
How about: (require '[clojure.string :as str]) (defn map-to-query-string [m] (str/join "&" (map (fn [[k v]] (str (name k) "=" v)) m))) -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Railo Technologies, Inc. -- http://www.getrailo.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- 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