This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-28
Channels
- # aleph (1)
- # arachne (4)
- # beginners (13)
- # boot (18)
- # clara (7)
- # cljs-dev (156)
- # cljsrn (278)
- # clojure (163)
- # clojure-conj (5)
- # clojure-dev (1)
- # clojure-losangeles (1)
- # clojure-poland (2)
- # clojure-sg (1)
- # clojure-spec (15)
- # clojure-uk (17)
- # clojurescript (275)
- # data-science (5)
- # datomic (23)
- # emacs (10)
- # leiningen (1)
- # lumo (16)
- # off-topic (98)
- # onyx (10)
- # parinfer (83)
- # re-frame (18)
- # reagent (47)
- # remote-jobs (1)
- # ring (1)
- # ring-swagger (5)
- # rum (6)
- # specter (8)
- # vim (5)
First-time specter user today; How would I compose [MAP-VALS (multi-path :checks :dependencies) ALL :relation]
and [MAP-VALS :features MAP-VALS]
?
it looked like cond-path, but then it seems you're duplicating the multi-path and :features? Wasn't sure if there was a cleaner way. (ie [MAP-VALS (cond-path (multi-path :checks :dependencies) [(multi-path :checks :dependencies) ALL :relation] :features [:features MAP-VALS])]
)
@eriktjacobsen not sure what you mean by "compose"
if you want to do both paths at once it's just multi-path
similar to what you're already doing
fair. the third block using cond-path is what I want, i just thought there might be another way besides duplicating the pieces in cond
putting (multi-path :checks :dependencies)
as your condition does nothing
that condition is always true
conditionals in specter (`cond-path` and if-path
) are true if at least one element is selected