• (node loc)
Returns the node at loc

1 Example top

  • user=>(require '[clojure.zip :as zip])
    user=> (def original [1 '(a b c) 2])
    user=> (def root-loc (zip/seq-zip (seq original)))
    user=> (zip/node (zip/down root-loc))
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/zip.clj:64 top

(defn node
  "Returns the node at loc"
  {:added "1.0"}
  [loc] (loc 0))
Vars in clojure.zip/node:
Used in 0 other vars

Comments top

No comments for node. Log in to add a comment.