Skip to content

Commit

Permalink
clean up solutions a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
David Nolen authored and David Nolen committed Dec 10, 2012
1 parent 16ba115 commit e13a805
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/clojure/clojure/core/logic.clj
Expand Up @@ -1843,11 +1843,10 @@
([& goals] `(fn [a#] (bind* a# ~@goals))))

(defn solutions
([s g]
(solutions s (lvar) g))
([s q g]
(take*
((all g
(fn [a]
(cons (-reify a q) '()))) s))))
(take* ((all g (reifyg q)) s))))

;; =============================================================================
;; Debugging
Expand Down

0 comments on commit e13a805

Please sign in to comment.