0.8.4-SNAPSHOT permalink Arrow_down_16x16
  • (defnm t n & rest)

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/core/logic.clj:1566 top

(defmacro defnm [t n & rest]
  (let [[n [as & cs]] (name-with-attributes n rest)]
    (binding [*locals* (env-locals as (keys &env))]
     (if-let [tabled? (-> n meta :tabled)]
       `(def ~n (tabled [~@as] ~(handle-clauses t as cs)))
       `(defn ~n [~@as] ~(handle-clauses t as cs))))))
Vars in clojure.core.logic/defnm:
Used in 0 other vars

Comments top

No comments for defnm. Log in to add a comment.