This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-27
Channels
- # announcements (7)
- # aws (1)
- # beginners (42)
- # calva (65)
- # clj-kondo (5)
- # cljs-dev (11)
- # clojure (69)
- # clojure-australia (7)
- # clojure-dev (4)
- # clojure-europe (9)
- # clojure-gamedev (2)
- # clojurescript (2)
- # conjure (4)
- # cursive (1)
- # data-science (1)
- # datomic (8)
- # events (1)
- # fulcro (35)
- # graalvm-mobile (40)
- # introduce-yourself (1)
- # lsp (26)
- # malli (14)
- # mathematics (2)
- # missionary (5)
- # nextjournal (4)
- # off-topic (4)
- # polylith (10)
- # shadow-cljs (5)
- # test-doc-blocks (1)
- # tools-build (24)
- # tools-deps (1)
- # xtdb (12)
(def atm_ (atom {:a 1 :b 1}))
(def r
(mi/reactor
(let [>m (mi/signal! (mi/watch atm_))
>a (mi/signal! (mi/eduction (comp (map :a) (dedupe)) >m))
>b (mi/signal! (mi/eduction (comp (map :b) (dedupe)) >m))
>c (mi/latest + >a >b)]
(mi/stream! (mi/ap (println (mi/?< >c)))))))
(def dispose (r prn prn))
(swap! atm_ (fn [m] (assoc m :a 2 :b 2)))