This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-19
Channels
- # aws (2)
- # beginners (135)
- # boot (20)
- # chestnut (7)
- # cider (18)
- # clara (5)
- # cljs-dev (50)
- # cljsrn (30)
- # clojure (252)
- # clojure-italy (9)
- # clojure-losangeles (5)
- # clojure-russia (8)
- # clojure-spec (33)
- # clojure-uk (5)
- # clojurescript (32)
- # clr (4)
- # cursive (5)
- # data-science (1)
- # datascript (1)
- # datomic (40)
- # emacs (1)
- # fulcro (18)
- # graphql (11)
- # hoplon (3)
- # lein-figwheel (2)
- # lumo (47)
- # off-topic (2)
- # om-next (3)
- # onyx (10)
- # pedestal (22)
- # protorepl (6)
- # re-frame (7)
- # reagent (38)
- # ring (1)
- # ring-swagger (5)
- # rum (3)
- # spacemacs (19)
- # specter (5)
- # vim (13)
- # yada (16)
@michaelwfogleman the zipper data structure is an implementation detail, I don't think showing those belongs in the documentation
with zipper usage you always do the following steps: 1. navigate to zipper, 2. navigate with zippers to whatever you want to change 3. navigate using NODE
or NODE-SEQ
to the actual value for updates
e.g. (transform [VECTOR-ZIP DOWN RIGHT RIGHT NODE] inc [1 2 3 4 5]) ; => [1 2 4 4 5]
also here's an example of NODE-SEQ
for you:
(setval [VECTOR-ZIP DOWN RIGHT RIGHT NODE-SEQ] [:a :b :c] [1 2 3 4 5])
;; => [1 2 :a :b :c 4 5]