Skip to content

Commit

Permalink
fix unify-with-pmap* implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed May 6, 2013
1 parent 69e60be commit 6d1780d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/clojure/clojure/core/logic.clj
Expand Up @@ -2577,14 +2577,10 @@
(loop [ks (keys u) s s]
(if (seq ks)
(let [kf (first ks)
vf (get v kf ::not-found)
uf (get u kf)]
vf (get v kf ::not-found)]
(if (= vf ::not-found)
(if (= uf ::not-found)
(recur (next ks) s)
nil)
(if (= uf ::not-found)
nil
nil
(let [uf (get u kf)]
(if-let [s (unify s uf vf)]
(recur (next ks) s)
nil))))
Expand Down

0 comments on commit 6d1780d

Please sign in to comment.