0.8.4-SNAPSHOT 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 cljs/core/logic/macros.clj:365 top

(defmacro defnm [t n & rest]
  (let [[n [as & cs]] (name-with-attributes n rest)]
    (binding [*locals* (env-locals as (-> &env :locals keys))]
     (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 cljs.core.logic.macros/defnm:
Used in 0 other vars

Comments top

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