Skip to content

Instantly share code, notes, and snippets.

@neilmock
Created January 24, 2010 23:23
Show Gist options
  • Save neilmock/285511 to your computer and use it in GitHub Desktop.
Save neilmock/285511 to your computer and use it in GitHub Desktop.
;; pass in a vector, get a querystring
(defn build-querystring [params]
(let [qpairs (map #(str-join "=" (str %)) params)]
(apply str (interpose "&" qpairs))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment