• (non-base-rules rs)
Return a collection of rules that depend, somehow, on other rules

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/contrib/datalog/rules.clj:167 top

(defn non-base-rules
  "Return a collection of rules that depend, somehow, on other rules"
  [rs]
  (let [pred (all-predicates rs)
        non-base (fn [r]
                   (if (some #(pred %)
                             (map literal-predicate (:body r)))
                     r
                     nil))]
    (remove nil? (map non-base rs))))
Vars in clojure.contrib.datalog.rules/non-base-rules: defn let map nil? remove
Used in 0 other vars

Comments top

No comments for non-base-rules. Log in to add a comment.