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?
https://github.com/clj-commons/rewrite-clj/blob/main/doc/01-user-guide.adoc#position-tracking
oh dang, i completely misunderstood that option. i thought without it, there'd be no location data at all. facepalm
hmm jk, i can't use z/find-last-by-pos without it
oh perfect, thank you
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
the suggested function in that issue works great, thank you