rewrite-clj.paredit
B
Returns `zloc` with leftmost node of the parent sequence pushed left out of the sequence. - `[1 2 [3 |4] 5] => [1 2 3...
function([zloc])
Returns `zloc` with rightmost node of the parent sequence pushed right out of the sequence. Comments and newlines pre...
function([zloc])
J
Returns `zloc` with sequence to the left joined to sequence to the right. Also works for strings. If sequence types ...
function([zloc])
K
Returns `zloc` with the current node and all sibling nodes to the right removed. Locates `zloc` to node left of delete...
function([zloc])
Return `zloc` with found item starting at `pos` removed to its natural end. If `pos` is: - inside a string, remove...
function([zloc pos])
Return `zloc` with node/word found at `pos` removed. If `pos` is: - inside a string or comment, removes word at `po...
function([zloc pos])
M
Move node at current location to the position of previous location given a depth first traversal - `(+ 1 (+ 2 |3) ...
function([zloc])
R
Delete siblings and raise node at zloc one level up - `[1 [2 |3 4]] => [1 |3]`
function([zloc])
S
DEPRECATED: we recommend [[slurp-backward-into]] for more control. Returns `zloc` with node to the left of nearest el...
function([zloc])
DEPRECATED: We recommend instead [[slurp-backward-fully-into]] for more control. Returns `zloc` with all left sibling...
function([zloc])
Returns `zloc` with all left sibling nodes of nearest eligible sequnece slurped into that sequence else `zloc` See al...
function([zloc] [zloc opts])
Returns `zloc` with node to the left of nearest eligible sequence slurped into that sequence else `zloc` unchanged. O...
function([zloc] [zloc opts])
DEPRECATED: we recommend [[slurp-forward-into]] instead for more control. Return `zloc` with node to the right of nea...
function([zloc])
DEPRECATED: We recommend [[slurp-forward-fully-into]]] for more control. Return `zloc` with all right sibling nodes o...
function([zloc])
Return `zloc` with all right sibling nodes of nearest eligible sequence slurped into that sequence else `zloc` unchanged...
function([zloc] [zloc opts])
Return `zloc` with node to the right of nearest eligible sequence slurped into that sequence else `zloc` unchanged. O...
function([zloc] [zloc opts])
See [[rewrite-clj.zip/splice]]
functionReturn `zloc` with current and right siblings spliced into parent sequence. - `(a (b c |d e f) g) => (a |d e f g)` ...
function([zloc])
Return `zloc` with left siblings spliced into parent sequence. - `(a (b c |d e f) g) => (a b |c g)`
function([zloc])
Return `zloc` with parent sequence split into to two sequences at current node. Location is retained. If split would r...
function([zloc])
In-string aware split. Returns `zloc` with node found at `pos` split. If `pos` is inside a string, splits string into ...
function([zloc pos])
W
Wrap current node with a given type `t` where `t` can be one of `:vector`, `:list`, `:set`, `:map` `:fn`. - `|123 => ...
function([zloc t])
Create a new seq node of type `t` left of `zloc` then slurp fully into the new node - `[1 |2 3 4] => [1 [|2 3 4]]`
function([zloc t])