0.8.4-SNAPSHOT Arrow_down_16x16
  • (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 cljs/core/logic/macros.clj:130 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 cljs.core.logic.macros/trace-lvars:
Used in 0 other vars

Comments top

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