This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-03
Channels
- # aws (24)
- # beginners (377)
- # calva (33)
- # cider (1)
- # circleci (22)
- # cljs-dev (7)
- # clojure (40)
- # clojure-europe (1)
- # clojure-france (9)
- # clojure-norway (3)
- # clojure-taiwan (2)
- # clojurescript (8)
- # conjure (10)
- # cryogen (2)
- # emacs (1)
- # fulcro (23)
- # helix (1)
- # hoplon (2)
- # luminus (7)
- # meander (3)
- # off-topic (2)
- # re-frame (7)
- # reagent (8)
- # reveal (38)
- # sci (13)
- # shadow-cljs (17)
- # tools-deps (17)
- # vim (1)
I’ll throw out another solution just in case anyone is interested.
(m/rewrite db
{:items [{:id !ids :labels (m/or [!labels ..!n]
(m/let [!n 0]))} ..!m]
:labels ?labels}
{:items
[{:id !ids :labels [(m/cata [!labels ?labels]) ..!n]} ..!m]}
[?label (m/scan {:id ?label :name ?name})]
?name)
👍 3