Created
February 27, 2012 04:36
-
-
Save mattdeboard/1921435 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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