This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-04
Channels
- # announcements (5)
- # beginners (124)
- # boot (43)
- # braveandtrue (8)
- # calva (1)
- # cider (44)
- # cljs-dev (1)
- # clojure (188)
- # clojure-canada (3)
- # clojure-germany (1)
- # clojure-italy (5)
- # clojure-nl (13)
- # clojure-russia (1)
- # clojure-spec (14)
- # clojure-uk (42)
- # clojurescript (94)
- # core-async (5)
- # cursive (5)
- # datomic (45)
- # duct (3)
- # emacs (6)
- # figwheel-main (93)
- # fulcro (22)
- # graphql (3)
- # hyperfiddle (1)
- # leiningen (3)
- # off-topic (1)
- # pedestal (1)
- # play-clj (1)
- # portkey (1)
- # re-frame (17)
- # reagent (71)
- # remote-jobs (2)
- # rum (3)
- # shadow-cljs (45)
- # spacemacs (17)
- # specter (18)
- # tools-deps (27)
- # unrepl (1)
- # vim (3)
forgive the neophyte inquiriry, I'm attempting to emulate
(update-in {} [:a :b :c] (fnil concat []) [1 2 3])
for practice I'm just trying it on one nested value
(setval [:a NIL->VECTOR END] [1 2 3] {})
ah I see... so the above is working it's when I'm dealing with a vector-as-a-key that it's an issue
(setval [:a (must [:b :c]) NIL->VECTOR END] [1 2 3] {:a {}})
current working work around... not pretty but it works
@goomba I think you want (must :b :c)
or (apply must [:b :c])
hmm well no luck so far but my guess is in general I'm still not a high enough level specter yet
you don't happen to know @nathanmarz of any open source projects that are making good use of your library do you? Would love to see more examples
I'm always getting so close to what I want to do but just always missing a piece
for instance, navigating to the maximum of a set of elements
(select [MAP-VALS :index MAX] {:a {:index 0} :b {:index 1}})
... I should be able to write or figure out MAX
but sadly just not there yetof course that's simple enough to do with other functions but just trying to learn to think in specter haha
@goomba I don't really keep track of how specter is used by other open source projects
you can try doing a github search
no problemo... working through some of your examples