1.2.0 permalink Arrow_down_16x16
  • (build-atom f type)
Returns an unevaluated expression (to be used in a macro) of an
atom.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/datalog/literals.clj:132 top

(defn build-atom
  "Returns an unevaluated expression (to be used in a macro) of an
   atom."
  [f type]
  (let [p (first f)
        ts (map #(if (is-var? %) `(quote ~%) %) (next f))
        b (if (seq ts) (apply assoc {} ts) nil)]
    `(struct atomic-literal ~p ~b ~type)))
Vars in clojure.contrib.datalog.literals/build-atom: defn let type concat list seq struct
Used in 0 other vars

Comments top

No comments for build-atom. Log in to add a comment.