0.8.4-SNAPSHOT Arrow_down_16x16



  • (extract-vars p)
  • (extract-vars p seen)

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

(defn extract-vars
     (set (cond
           (lvar-sym? p) [p]           
           (coll? p) (let [p (if (seq? p) (rest p) p)]
                       (filter lvar-sym? (flatten p)))
           :else nil)))
  ([p seen]
     (set/difference (extract-vars p) (set seen))))
Vars in cljs.core.logic.macros/extract-vars:
Used in 0 other vars

Comments top

No comments for extract-vars. Log in to add a comment.