From 71c6adab58547682eae255e7aecb20db0eca97ba Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 24 Oct 2016 22:12:35 +0200 Subject: [PATCH] Add mirror-map macro (commented inder uxbox.util.data ns). --- src/uxbox/util/data.cljs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/uxbox/util/data.cljs b/src/uxbox/util/data.cljs index 32ae5eff1f..3a7d22baa2 100644 --- a/src/uxbox/util/data.cljs +++ b/src/uxbox/util/data.cljs @@ -143,3 +143,9 @@ acc)) [] (partition 2 params)))) + + +;; (defmacro mirror-map [& fields] +;; (let [keys# (map #(keyword (name %)) fields) +;; vals# fields] +;; (apply hash-map (interleave keys# vals#))))