0.8.4-SNAPSHOT Arrow_down_16x16
  • (expand form)

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

(defn expand [form]
  (if (seq? form)
    (let [[op & args] form]
     (if (and (binops op) (core/> (count args) 2))
       (list op (expand (first args))
             (expand (cons op (rest args))))
       (cons op (map expand args))))
    form))
Vars in clojure.core.logic.fd/expand:
Used in 0 other vars

Comments top

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