Liking cljdoc? Tell your friends :D

rewrite-clj.zip.editz


editcljs

(edit zloc f & args)

Apply the given function to the s-expression at the given location, using its result to replace the node there. (The result will be coerced to a node if possible.)

Apply the given function to the s-expression at the given
location, using its result to replace the node there. (The
result will be coerced to a node if possible.)
sourceraw docstring

prefixcljs

(prefix zloc s)
source

replacecljs

(replace zloc value)

Replace the node at the given location with one representing the given value. (The value will be coerced to a node if possible.)

Replace the node at the given location with one representing
the given value. (The value will be coerced to a node if
possible.)
sourceraw docstring

splicecljs

(splice zloc)

Splice the given node, i.e. merge its children into the current one (akin to Clojure's unquote-splicing macro: ~@...).

  • if the node is not one that can have children, no modification will be performed.
  • if the node has no or only whitespace children, it will be removed.
  • otherwise, splicing will be performed, moving the zipper to the first non-whitespace child afterwards.
Splice the given node, i.e. merge its children into the current one
(akin to Clojure's `unquote-splicing` macro: `~@...`).
- if the node is not one that can have children, no modification will
  be performed.
- if the node has no or only whitespace children, it will be removed.
- otherwise, splicing will be performed, moving the zipper to the first
  non-whitespace child afterwards.
sourceraw docstring

suffixcljs

(suffix zloc s)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close