0.8.4-SNAPSHOT Arrow_down_16x16
  • (lcons a d)
Constructs a sequence a with an improper tail d if d is a logic variable.

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

(defn lcons
  "Constructs a sequence a with an improper tail d if d is a logic variable."
  [a d]
  (if (or (coll? d) (nil? d))
    (cons a (seq d))
    (LCons. a d -1 nil)))
Vars in clojure.core.logic/lcons:
Used in 0 other vars

Comments top

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