You're viewing version 1.2.0 of edit. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16
  • (edit loc f & args)
Replaces the node at this loc with the value of (f node args)

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

(defn edit
  "Replaces the node at this loc with the value of (f node args)"
  {:added "1.0"}
  [loc f & args]
    (replace loc (apply f (node loc) args)))
Vars in clojure.zip/edit: apply defn replace
Used in 0 other vars

Comments top

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