0.8.4-SNAPSHOT Arrow_down_16x16

multi-interval

clojure.core.logic.fd

  • (multi-interval)
  • (multi-interval i0)
  • (multi-interval i0 i1)
  • (multi-interval i0 i1 & ir)

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/fd.clj:592 top

(defn multi-interval
  ([] nil)
  ([i0] i0)
  ([i0 i1]
     (let [is [i0 i1]]
       (MultiIntervalFD. (reduce min (map lb is)) (reduce max (map ub is)) is)))
  ([i0 i1 & ir]
     (let [is (into [] (concat (list i0 i1) ir))]
       (MultiIntervalFD. (reduce min (map lb is)) (reduce max (map ub is)) is))))
Vars in clojure.core.logic.fd/multi-interval:
Used in 0 other vars

Comments top

No comments for multi-interval. Log in to add a comment.