0.8.4-SNAPSHOT Arrow_down_16x16
  • (rem-attr s x attr)

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

(defn rem-attr [s x attr]
  (let [x (root-var s x)
        v (root-val s x)]
    (if (subst-val? v)
      (let [new-meta (dissoc (meta v) attr)]
        (if (and (zero? (count new-meta)) (not= (:v v) ::unbound))
          (update-var s x (:v v))
          (update-var s x (with-meta v new-meta))))
      s)))
Vars in clojure.core.logic/rem-attr:
Used in 0 other vars

Comments top

No comments for rem-attr. Log in to add a comment.