build.clj

Branches > client-handling-rewrite > f54e001 > files / src / dev / grahp / build.clj

(ns dev.grahp.build)

(defmacro build
  "'Buidls' a map using the pairs returned by the body of 'for'.
   Same as (into {} (for ...))."
  {:clj-kondo/lint-as 'clojure.core/for}
  [bindings & body]
  `(into {}
         (for ~bindings
           ~@body)))