0.8.4-SNAPSHOT Arrow_down_16x16
  • (project [& vars] & goals)
Extract the values bound to the specified logic vars. Non-relational.

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

(defmacro project
  "Extract the values bound to the specified logic vars. Non-relational."
  [[& vars] & goals]
  (let [a (gensym "a")]
    `(fn [~a]
       (let [~@(project-bindings vars a)]
         ((fresh []
            ~@goals) ~a)))))
Vars in clojure.core.logic/project:
Used in 0 other vars

Comments top

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