|
122 | 122 | [[append-child*]]
|
123 | 123 | [[remove*]]
|
124 | 124 |
|
125 |
| - **Isolated update without changing location** |
| 125 | + **Update without changing location** |
126 | 126 | [[edit-node]]
|
| 127 | + [[edit->]] |
| 128 | + [[edit->>]] |
| 129 | +
|
| 130 | + **Isolated update without changing location** |
127 | 131 | [[subedit-node]]
|
128 | 132 | [[subzip]]
|
129 | 133 | [[prewalk]]
|
130 | 134 | [[postwalk]]
|
131 |
| - [[edit->]] |
132 |
| - [[edit->>]] |
133 | 135 | [[subedit->]]
|
134 | 136 | [[subedit->>]]
|
135 |
| -
|
| 137 | + |
136 | 138 | **Sequence operations**
|
137 | 139 | [[map]]
|
138 | 140 | [[map-keys]]
|
|
675 | 677 | (defn edit-node
|
676 | 678 | "Return zipper applying function `f` to `zloc`. The resulting
|
677 | 679 | zipper will be located at the same path (i.e. the same number of
|
678 |
| - downwards and right movements from the root) incoming `zloc`." |
| 680 | + downwards and right movements from the root) incoming `zloc`. |
| 681 | + |
| 682 | + See also [[subedit-node]] for an isolated edit." |
679 | 683 | [zloc f] (rewrite-clj.zip.subedit/edit-node zloc f))
|
680 | 684 |
|
681 | 685 | ;; DO NOT EDIT FILE, automatically imported from: rewrite-clj.zip.subedit
|
682 | 686 | (defn subedit-node
|
683 | 687 | "Return zipper replacing current node in `zloc` with result of `f` applied to said node as an isolated sub-tree.
|
684 |
| - The resulting zipper will be located on the root of the modified sub-tree." |
| 688 | + The resulting zipper will be located on the root of the modified sub-tree. |
| 689 | + |
| 690 | + See [docs on sub editing](/doc/01-user-guide.adoc#sub-editing)." |
685 | 691 | [zloc f] (rewrite-clj.zip.subedit/subedit-node zloc f))
|
686 | 692 |
|
687 | 693 | ;; DO NOT EDIT FILE, automatically imported from: rewrite-clj.zip.subedit
|
688 | 694 | (defn subzip
|
689 |
| - "Create and return a zipper whose root is the current node in `zloc`." |
| 695 | + "Create and return a zipper whose root is the current node in `zloc`. |
| 696 | + |
| 697 | + See [docs on sub editing](/doc/01-user-guide.adoc#sub-editing)." |
690 | 698 | [zloc] (rewrite-clj.zip.subedit/subzip zloc))
|
691 | 699 |
|
692 | 700 | ;; DO NOT EDIT FILE, automatically imported from: rewrite-clj.zip.subedit
|
693 | 701 | (defmacro edit->
|
694 | 702 | "Like `->`, threads `zloc` through forms.
|
695 | 703 | The resulting zipper will be located at the same path (i.e. the same
|
696 |
| - number of downwards and right movements from the root) as incoming `zloc`." |
| 704 | + number of downwards and right movements from the root) as incoming `zloc`. |
| 705 | + |
| 706 | + See also [[subedit->]] for an isolated edit." |
697 | 707 | [zloc & body] `(rewrite-clj.zip.subedit/edit-> ~zloc ~@body))
|
698 | 708 |
|
699 | 709 | ;; DO NOT EDIT FILE, automatically imported from: rewrite-clj.zip.subedit
|
700 | 710 | (defmacro edit->>
|
701 | 711 | "Like `->>`, threads `zloc` through forms.
|
702 | 712 | The resulting zipper will be located at the same path (i.e. the same
|
703 |
| - number of downwards and right movements from the root) as incoming `zloc`." |
| 713 | + number of downwards and right movements from the root) as incoming `zloc`. |
| 714 | + |
| 715 | + See also [[subedit->>]] for an isolated edit." |
704 | 716 | [zloc & body] `(rewrite-clj.zip.subedit/edit->> ~zloc ~@body))
|
705 | 717 |
|
706 | 718 | ;; DO NOT EDIT FILE, automatically imported from: rewrite-clj.zip.subedit
|
707 | 719 | (defmacro subedit->
|
708 | 720 | "Like `->`, threads `zloc`, as an isolated sub-tree through forms, then zips
|
709 |
| - up to, and locates at, the root of the modified sub-tree." |
| 721 | + up to, and locates at, the root of the modified sub-tree. |
| 722 | + |
| 723 | + See [docs on sub editing](/doc/01-user-guide.adoc#sub-editing)." |
710 | 724 | [zloc & body] `(rewrite-clj.zip.subedit/subedit-> ~zloc ~@body))
|
711 | 725 |
|
712 | 726 | ;; DO NOT EDIT FILE, automatically imported from: rewrite-clj.zip.subedit
|
713 | 727 | (defmacro subedit->>
|
714 | 728 | "Like `->`. Threads `zloc`, as an isolated sub-tree through forms, then zips
|
715 |
| - up to, and locates at, the root of the modified sub-tree." |
| 729 | + up to, and locates at, the root of the modified sub-tree. |
| 730 | +
|
| 731 | + See [docs on sub editing](/doc/01-user-guide.adoc#sub-editing)." |
716 | 732 | [zloc & body] `(rewrite-clj.zip.subedit/subedit->> ~zloc ~@body))
|
717 | 733 |
|
718 | 734 | ;; DO NOT EDIT FILE, automatically imported from: rewrite-clj.zip.walk
|
|
753 | 769 | zip/up
|
754 | 770 | (zip/prewalk ...))
|
755 | 771 | ```
|
756 |
| - " |
| 772 | +
|
| 773 | + See [docs on sub editing](/doc/01-user-guide.adoc#sub-editing)." |
757 | 774 | ([zloc f] (rewrite-clj.zip.walk/prewalk zloc f))
|
758 | 775 | ([zloc p? f] (rewrite-clj.zip.walk/prewalk zloc p? f)))
|
759 | 776 |
|
|
795 | 812 | zip/up
|
796 | 813 | (zip/postwalk ...))
|
797 | 814 | ```
|
798 |
| - " |
| 815 | +
|
| 816 | + See [docs on sub editing](/doc/01-user-guide.adoc#sub-editing)." |
799 | 817 | ([zloc f] (rewrite-clj.zip.walk/postwalk zloc f))
|
800 | 818 | ([zloc p? f] (rewrite-clj.zip.walk/postwalk zloc p? f)))
|
801 | 819 |
|
|
0 commit comments