Files
prototype-r7rs-expander/src/common.clj
T
2026-09-24 05:48:40 -06:00

10 lines
191 B
Clojure

(ns common)
(defmacro inherit [& syms]
(let [f (if (<= 8 (count syms))
`hash-map
`array-map)]
`(~f ~@(mapcat #(list (keyword %) %)
syms))))