mirror of
https://github.com/penpot/penpot.git
synced 2026-03-12 05:16:23 +00:00
Add mirror-map macro (commented inder uxbox.util.data ns).
This commit is contained in:
@@ -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#))))
|
||||
|
||||
Reference in New Issue
Block a user