Liking cljdoc? Tell your friends :D

rewrite-clj.zip.whitespace


append-newlinecljs

(append-newline zloc)
(append-newline zloc n)

Append a newline node representing the given number of newlines (default: 1).

Append a newline node representing the given number of newlines (default: 1).
sourceraw docstring

append-spacecljs

(append-space zloc)
(append-space zloc n)

Append a whitespace node representing the given number of spaces (default: 1).

Append a whitespace node representing the given number of spaces (default: 1).
sourceraw docstring

comment?cljs

(comment? zloc)
source

linebreak?cljs

(linebreak? zloc)
source

prepend-newlinecljs

(prepend-newline zloc)
(prepend-newline zloc n)

Prepend a newlines node representing the given number of newlines (default: 1).

Prepend a newlines node representing the given number of newlines (default: 1).
sourceraw docstring

prepend-spacecljs

(prepend-space zloc)
(prepend-space zloc n)

Prepend a whitespace node representing the given number of spaces (default: 1).

Prepend a whitespace node representing the given number of spaces (default: 1).
sourceraw docstring

skipcljs

(skip f p? zloc)

Perform the given movement while the given predicate returns true.

Perform the given movement while the given predicate returns true.
sourceraw docstring

skip-whitespacecljs

(skip-whitespace zloc)
(skip-whitespace f zloc)

Perform the given movement (default: z/right) until a non-whitespace/ non-comment node is encountered.

Perform the given movement (default: `z/right`) until a non-whitespace/
non-comment node is encountered.
sourceraw docstring

skip-whitespace-leftcljs

(skip-whitespace-left zloc)

Move left until a non-whitespace/non-comment node is encountered.

Move left until a non-whitespace/non-comment node is encountered.
sourceraw docstring

whitespace-not-linebreak?cljs

(whitespace-not-linebreak? zloc)
source

whitespace-or-comment?cljs

(whitespace-or-comment? zloc)
source

whitespace?cljs

(whitespace? zloc)
source

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

× close