Skip to main content

move-to-prev

function

rewrite-clj.paredit/move-to-prev

(move-to-prev [zloc])
Move node at current location to the position of previous location given a depth first traversal - `(+ 1 (+ 2 |3) 4) => (+ 1 (+ |3 2) 4)` - `(+ 1 (+ 2 3) |4) => (+ 1 (+ 2 3 |4))` returns zloc after move or given zloc if a move isn't possible

No examples yet. Be the first to add one!