rewrite-clj 2025-05-14

i have a zipper and a bunch of locations. i can step between the locations, but if i modify the code at a given location, the later locations now point to the incorrect spot (because the later positions are updated). i'd like to be able to modify the code at each location without losing the later positions. is there an easy way to do what i want?

this is the difference between location tracking and not tracking I believe?

oh dang, i completely misunderstood that option. i thought without it, there'd be no location data at all. facepalm

❤️ 1

hmm jk, i can't use z/find-last-by-pos without it

oh perfect, thank you

👍 1

another idea: attach also the old location on the node under a different key :P

yeah i could walk the whole zloc and annotate the locations and then walk it a second time to perform the updates, but @lee's quick fix looks like it'll work great

🎉 1

the suggested function in that issue works great, thank you

🎉 2