This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-24
Channels
- # aws (14)
- # beginners (111)
- # boot (12)
- # cider (1)
- # cljsrn (7)
- # clojure (65)
- # clojure-dusseldorf (1)
- # clojure-germany (7)
- # clojure-greece (10)
- # clojure-italy (13)
- # clojure-poland (7)
- # clojure-russia (7)
- # clojure-spec (53)
- # clojure-uk (29)
- # clojurescript (27)
- # community-development (9)
- # cursive (2)
- # data-science (1)
- # datomic (17)
- # emacs (16)
- # events (6)
- # fulcro (155)
- # graphql (8)
- # instaparse (1)
- # leiningen (30)
- # lumo (29)
- # om-next (3)
- # other-languages (46)
- # pedestal (11)
- # portkey (7)
- # re-frame (13)
- # reagent (6)
- # ring (8)
- # rum (1)
- # shadow-cljs (75)
- # sql (1)
- # timbre (3)
- # unrepl (128)
Hey all, Is there a clean way to query the element who's Ident
is described in this app-state?
(def init-data
{:list [{:data "Foo" :type :type1 :group 1}
{:data "Bar" :type :type1 :group 2}
{:data "Baz" :type :type2 :group 1}
{:data "Qux" :type :type2 :group 2}]
:current {:type :type1 :group 2}})
The GitHub wiki always maps over lists like these. Is it bad practice to try and lookup a single identity in a list like this?I can map over the list easily enough, but it's unclear how to query only the specified item and nothing else
I couldn't find exactly what I was looking for, I opted to nomralize my data instead of doing extra lookups