Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created February 27, 2012 04:36
Show Gist options
  • Select an option

  • Save mattdeboard/1921435 to your computer and use it in GitHub Desktop.

Select an option

Save mattdeboard/1921435 to your computer and use it in GitHub Desktop.
(defn merge-queries [coll sep]
(paren-wrap (apply str (interpose sep (map build-querystring coll)))))
(defn -| [coll] (merge-queries coll (:or connectors)))
(defn -& [coll] (merge-queries coll (:and connectors)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment