summaryrefslogtreecommitdiff
path: root/src/clojure_sql/util.clj
blob: 03c90f1b3de07bbdd9016ed3e7290126b4d8c8b7 (about) (plain)
1
2
3
4
5
6
7
8
9
10
(ns clojure-sql.util)

(defn flip [f]
  (fn [& args]
    (apply f (reverse args))))

(defn flip-map [m]
  (->> m
       (map (comp vec reverse))
       (into {})))