This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-05
Channels
- # announcements (13)
- # aws (1)
- # bangalore-clj (4)
- # beginners (66)
- # boot (11)
- # calva (27)
- # cider (27)
- # clj-kondo (76)
- # cljdoc (6)
- # cljs-dev (38)
- # clojars (3)
- # clojure (143)
- # clojure-dev (2)
- # clojure-europe (6)
- # clojure-greece (10)
- # clojure-italy (10)
- # clojure-nl (5)
- # clojure-norway (2)
- # clojure-sweden (1)
- # clojure-uk (19)
- # clojurescript (49)
- # cursive (13)
- # datomic (14)
- # duct (6)
- # figwheel-main (3)
- # fulcro (31)
- # funcool (7)
- # jobs (3)
- # keechma (142)
- # liberator (1)
- # off-topic (15)
- # om (2)
- # reagent (1)
- # reitit (2)
- # remote-jobs (1)
- # rewrite-clj (73)
- # shadow-cljs (21)
- # spacemacs (18)
- # sql (5)
- # tools-deps (10)
- # yada (1)
I have this the following code, which is correct, but figwheel gives me a warning. What's up with that?
(defn give-rewards [state]
(let [path [:player :inventory]
mlvl (get-in state [:mob :level])
item (sni/generate-item mlvl)
slot (first-emtpy-slot (get-in state path))]
(cond-> state
(and slot item) (assoc-in (conj path slot) item))))
135 item (sni/generate-item mlvl)
136 slot (first-emtpy-slot (get-in state path))]
137 (cond-> state
138 (and slot item) (assoc-in (conj path slot) item))))
^--- Can't take value of macro cljs.core/and