children

clojure.zip

  • (children loc)
Returns a seq of the children of node at loc, which must be a branch

0 Examples top

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:75 top

(defn children
  "Returns a seq of the children of node at loc, which must be a branch"
  {:added "1.0"}
  [loc]
    (if (branch? loc)
      ((:zip/children (meta loc)) (node loc))
      (throw (Exception. "called children on a leaf node"))))
Vars in clojure.zip/children:
Used in 0 other vars

Comments top

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