You're viewing version 1.2.0 of node. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16
  • (node loc)
Returns the node at loc

1 Example top

  • user=>(require '[ :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 defn
Used in 0 other vars

Comments top

1 comment(s) for node.

See tutorial of at

Log in to add a comment.