kill
function
rewrite-clj.paredit/kill
(kill [zloc])Returns `zloc` with the current node and all sibling nodes to the right removed.
Locates `zloc` to node left of deleted node, else if no left node removes current node via [[rewrite-clj.zip/remove*]].
Makes no automatic whitespace adjustments.
- `[1 |2 3 4] => [1| ]`
- `[1 2 |3 4] => [1 2| ]`
- `[|1 2 3 4] => |[]`
- `[ |1 2 3 4] => [| ]`
Examples
No examples yet. Be the first to add one!