This commit is contained in:
1 parent
5936ec978b
commit
390fe16d90
5 files changed
+84
-44
No files matched your search
@@ -0,0 +1,9 @@
|
||||
(ns common)
|
||||
|
||||
(defmacro inherit [& syms]
|
||||
(let [f (if (<= 8 (count syms))
|
||||
`hash-map
|
||||
`array-map)]
|
||||
`(~f ~@(mapcat #(list (keyword %) %)
|
||||
syms))))
|
||||
|
||||
Reference in new issue
Block a user