0.8.4-SNAPSHOT Arrow_down_16x16
  • (map-sum f)

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

(defn map-sum [f]
  (fn loop [ls]
    (if (empty? ls)
      (fn [a] nil)
      (conde
        [(f (first ls))]
        [(loop (rest ls))]))))
Vars in clojure.core.logic.fd/map-sum:
Used in 0 other vars

Comments top

No comments for map-sum. Log in to add a comment.