0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-26 00:36:12 -05:00

Add mirror-map macro (commented inder uxbox.util.data ns).

This commit is contained in:
Andrey Antukh 2016-10-24 22:12:35 +02:00
parent 075c508d63
commit 71c6adab58
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -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#))))