mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
Add mirror-map macro (commented inder uxbox.util.data ns).
This commit is contained in:
parent
075c508d63
commit
71c6adab58
@ -143,3 +143,9 @@
|
|||||||
acc))
|
acc))
|
||||||
[]
|
[]
|
||||||
(partition 2 params))))
|
(partition 2 params))))
|
||||||
|
|
||||||
|
|
||||||
|
;; (defmacro mirror-map [& fields]
|
||||||
|
;; (let [keys# (map #(keyword (name %)) fields)
|
||||||
|
;; vals# fields]
|
||||||
|
;; (apply hash-map (interleave keys# vals#))))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user