Skip to content

Commit

Permalink
fix: Enable condition-all for Clojurescript
Browse files Browse the repository at this point in the history
  • Loading branch information
KingMob committed Apr 16, 2024
1 parent ab09e62 commit 77bb484
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/inferenceql/query/scalar.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@
#?@(:clj ['eval-relation-plan
(let [eval (requiring-resolve 'inferenceql.query.plan/eval)]
#(generative-table/generative-table (eval % env bindings)))])
#?@(:clj ['condition-all #(condition-all % bindings)
'condition-all-except #(condition-all %1 %2 bindings)])
'condition-all #(condition-all % bindings)
'condition-all-except #(condition-all %1 %2 bindings)
'condition condition
'constrain constrain
'mutual-info mutual-info
Expand All @@ -327,7 +327,7 @@
;; NB: never actually passes in more than one tuple
[sexpr env bindings & tuples]
(tap> #:scalar.eval{:in-env env :in-bindings bindings
:sexpr (pr-str sexpr) :tuple-sample (take 3 tuples)})
:sexpr (pr-str sexpr) :tuple-sample (take 3 tuples)})
(let [env' (merge env bindings)
tuple-map (fn tuple-map [tuple]
(merge (zipmap (tuple/attributes tuple)
Expand Down

0 comments on commit 77bb484

Please sign in to comment.