This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-08
Channels
- # admin-announcements (3)
- # alda (2)
- # beginners (66)
- # boot (54)
- # cider (21)
- # clara (1)
- # cljsfiddle (32)
- # cljsrn (9)
- # clojars (4)
- # clojure (164)
- # clojure-dusseldorf (4)
- # clojure-japan (2)
- # clojure-norway (1)
- # clojure-russia (76)
- # clojure-sg (8)
- # clojurescript (19)
- # core-async (1)
- # core-typed (1)
- # cursive (6)
- # datomic (1)
- # editors (48)
- # hoplon (20)
- # immutant (2)
- # jobs-discuss (6)
- # ldnclj (1)
- # om (82)
- # onyx (6)
- # parinfer (11)
- # proton (2)
- # re-frame (113)
- # reagent (17)
- # testing (11)
- # untangled (11)
- # vim (4)
- # yada (38)
I’m using q
to combine the results from 4 queries. In this query, ?a
is a count and I’d basically like to do an outer join against it (default of 0). get-else
only works with $
and datomic schemas, I feel like an or
might be involved but I can’t quite figure it out. Suggestions?
(d/q
'[:find ?u1 ?a ?b ?c
:in [[?u1 _]] [[?u2 ?b]] [[?u3 ?c]] [[?u4 ?a]]
:where
[(= ?u1 ?u2)]
[(= ?u2 ?u3)]
[(= ?u3 ?u4)]]
data
data-b
data-c
data-d
)