This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-20
Channels
- # aleph (19)
- # aws-lambda (8)
- # bangalore-clj (1)
- # beginners (13)
- # boot (179)
- # cljs-dev (12)
- # cljsjs (2)
- # cljsrn (6)
- # clojure (174)
- # clojure-italy (14)
- # clojure-nl (2)
- # clojure-russia (172)
- # clojure-spec (29)
- # clojure-uk (22)
- # clojurebridge (10)
- # clojureremote (1)
- # clojurescript (79)
- # cursive (46)
- # data-science (1)
- # datascript (8)
- # datomic (18)
- # defnpodcast (2)
- # emacs (9)
- # events (6)
- # hoplon (11)
- # klipse (13)
- # lein-figwheel (1)
- # leiningen (1)
- # luminus (1)
- # lumo (88)
- # numerical-computing (1)
- # off-topic (24)
- # om (33)
- # onyx (58)
- # protorepl (8)
- # re-frame (10)
- # reagent (26)
- # ring (8)
- # ring-swagger (7)
- # rum (22)
- # spacemacs (25)
- # specter (5)
- # uncomplicate (37)
- # untangled (75)
- # vim (17)
- # yada (3)
Hi!
There is some docs to recursive-path
?
I'm trying to do: [:a {:b [:c]}]
-> [:a {:b [:c :x]} :x]
(position of x
don't matter)
(append x
to all vector?
level's)
@souenzzo it's just (recursive-path [] p ...)
where p
refers to itself
navigating to all levels of the vector can be done: (recursive-path [] p (if-path vector? (continue-then-stay ALL p)))
with 0.13.3-SNAPSHOT can do:
user=> (def p (recursive-path [] p (if-path vector? (continue-then-stay ALL p))))
#'user/p
user=> (setval [p AFTER-ELEM] :x [1 [2 3] [[4]]])
[1 [2 3 :x] [[4 :x] :x] :x]