1.2.0 permalink Arrow_down_16x16
  • (is-var? sym)
Is this a logic variable: e.g. a symbol prefixed with a ?

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/util.clj:25 top

(defn is-var?
  "Is this a logic variable: e.g. a symbol prefixed with a ?"
  [sym]
  (when (symbol? sym)
    (let [name (name sym)]
      (and (= \? (first name))
           (not= \? (fnext name))))))
Vars in clojure.contrib.datalog.util/is-var?: = and defn first fnext let name not= symbol? when
Used in 0 other vars

Comments top

No comments for is-var?. Log in to add a comment.