1.3.0 permalink Arrow_down_16x16

append-child

clojure.zip

  • (append-child loc item)
Inserts the item as the rightmost child of the node at this loc,
without moving

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

(defn append-child
  "Inserts the item as the rightmost child of the node at this loc,
  without moving"
  {:added "1.0"}
  [loc item]
    (replace loc (make-node loc (node loc) (concat (children loc) [item]))))
Vars in clojure.zip/append-child:
Used in 0 other vars

Comments top

No comments for append-child. Log in to add a comment.