0.8.4-SNAPSHOT Arrow_down_16x16

trace-lvars

clojure.core.logic

  • (trace-lvars title & lvars)
Goal for tracing the values of logic variables.

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:1244 top

(defmacro trace-lvars
  "Goal for tracing the values of logic variables."
  [title & lvars]
  (let [a (gensym "a")]
    `(fn [~a]
       (println ~title)
       ~@(map (partial trace-lvar a) lvars)
       ~a)))
Vars in clojure.core.logic/trace-lvars:
Used in 0 other vars

Comments top

No comments for trace-lvars. Log in to add a comment.