This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-11
Channels
- # beginners (109)
- # boot (61)
- # cider (8)
- # clara (3)
- # cljs-dev (67)
- # cljsrn (5)
- # clojure (96)
- # clojure-argentina (1)
- # clojure-brasil (2)
- # clojure-greece (10)
- # clojure-russia (114)
- # clojure-spec (51)
- # clojure-uk (45)
- # clojurebridge (2)
- # clojurescript (139)
- # cursive (18)
- # data-science (1)
- # datascript (2)
- # datomic (13)
- # dirac (2)
- # emacs (5)
- # events (1)
- # javascript (2)
- # jobs (1)
- # juxt (3)
- # off-topic (62)
- # om (10)
- # onyx (12)
- # perun (7)
- # ring-swagger (7)
- # specter (21)
- # test-check (5)
- # untangled (16)
- # utah-clojurians (1)
- # yada (2)
@zane I haven't dug that much into Spec yet, care to show an example of what you mean?
I would be grateful if someone could give me advice on building paths dynamically using a navigator in 0.13.1
(sp/defnav
EID
[eid]
(select* [{:keys [eid]} structure next-fn] (eid-nav-select* eid structure next-fn))
(transform* [{:keys [eid]} structure next-fn] (eid-nav-transform* eid structure next-fn)))
and getting a Cannot statically combine sequential when not in nav pos
error when invoking specter-path
but when I defined this function
(defn- setval [apath aval structure]
(sp/setval apath aval structure))
and replaced sp/setval
with setval
inside the threading macro, it worked@imre that looks like a bug
can you open an issue on github for it?
you can workaround it by doing (let [p (specter-path ...)] (setval p ...))
thanks @nathanmarz I'll open one - is it okay if I just put this chatlog in there?
https://github.com/nathanmarz/specter/issues/157 added, thanks again!
thanks