This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-22
Channels
- # announcements (2)
- # babashka (64)
- # beginners (41)
- # calva (4)
- # cider (1)
- # clj-kondo (78)
- # cljdoc (31)
- # cljsrn (4)
- # clojars (2)
- # clojure (109)
- # clojure-germany (1)
- # clojure-italy (8)
- # clojure-nl (2)
- # clojure-spec (8)
- # clojure-uk (28)
- # clojurescript (61)
- # code-reviews (2)
- # cryogen (2)
- # cursive (23)
- # datomic (21)
- # duct (15)
- # fulcro (37)
- # graalvm (17)
- # graphql (3)
- # jackdaw (3)
- # joker (11)
- # lein-figwheel (4)
- # malli (42)
- # off-topic (97)
- # pathom (4)
- # pedestal (1)
- # portkey (3)
- # re-frame (7)
- # reagent (13)
- # reitit (2)
- # shadow-cljs (54)
- # spacemacs (1)
Hey everyone, I'm new to clojure(script). I've started learning few days ago and I have a doubt (inside this thread) https://i.imgur.com/BimmpLv.pnghttps://i.imgur.com/BimmpLv.png
and now I'd like to write the swap function to update new-status-cols in my app-state, replacing status-cols
(swap! state/app-state
(fn [state]
(let [board-idx (first (keep-indexed
(fn [i b]
(when (= board-name (:name b))
i))
(:boards state)))]
(assoc-in state [:boards board-idx :is-add-status-col-mod-open] false))))