`clojure.zip/node` returns the data at a zipper’s current location. It does not move the location. A node is ordinary Clojure data; a location also carries the position needed to navigate or edit the tree. section 8.4.4
Read the current node
(require '[clojure.zip :as zip]) (def loc (zip/vector-zip [1 2 [3 4]])) (zip/node loc) ;; [1 2 [3 4]] (-> loc zip/down zip/node) ;; 1 (-> loc zip/down zip/right zip/right zip/node) ;; [3 4] section 8.4.4
Use navigation functions such as `down` or `right` to select a location before calling `node`. For neighboring data without moving focus, `children`, `lefts`, and `rights` are alternatives. After edits, use `root` to retrieve the resulting tree. section 8.4.4
