function | since v0.0-927 | clojure.zip/append-child | Edit |
(append-child loc item)
Inserts the item as the rightmost child of the node at this loc, without moving
(defn append-child
[loc item]
(replace loc (make-node loc (node loc) (concat (children loc) [item]))))