diff options
Diffstat (limited to 'src/clojure_sql/util.clj')
-rw-r--r-- | src/clojure_sql/util.clj | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/clojure_sql/util.clj b/src/clojure_sql/util.clj new file mode 100644 index 0000000..03c90f1 --- /dev/null +++ b/src/clojure_sql/util.clj @@ -0,0 +1,10 @@ +(ns clojure-sql.util) + +(defn flip [f] + (fn [& args] + (apply f (reverse args)))) + +(defn flip-map [m] + (->> m + (map (comp vec reverse)) + (into {}))) |