Skip to main content

slurp-forward-fully

function

rewrite-clj.paredit/slurp-forward-fully

(slurp-forward-fully [zloc])
DEPRECATED: We recommend [[slurp-forward-fully-into]]] for more control. Return `zloc` with all right sibling nodes of nearest eligible sequence slurped into that sequence else `zloc` unchanged. Fully pull in first slurpable and all of its right siblings. - `[1 2 [|3] 4 5] 6 => [1 2 [|3 4 5]] 6` - `[[[|1 2]] 3 4] 5 => [[[|1 2 3 5]]] 5` Slurp from ancestor If located at an empty seq will ultimately slurp into that empty seq and locate to the first slurped node. - `[[1 2 |[]] 3 4] 5 => [[1 2 [|3 4]]] 5`

No examples yet. Be the first to add one!