it might be worthwhile to implement custom zippers for your trees, without using clojure.zip. I've done this for navigating into json structures and it was relatively painless (admittedly I only needed a smallish subset of the functionality provided by clojure.zip).
On Wed, Dec 4, 2013 at 1:09 PM, dabd <[email protected]> wrote: > I didn't get there because I ran into problems with the zipper API. When > you call 'children' on a loc you get a seq of nodes instead of a seq of > locs which causes me problems in a recursive algorithm operating on locs. > > On Wednesday, December 4, 2013 8:38:17 PM UTC, James Reeves wrote: > >> On 4 December 2013 20:27, dabd <[email protected]> wrote: >> >>> >>> I tried a purely functional approach with zippers but ran into some >>> trouble with the zipper API. I also think I will would have performance >>> problems too as there is a lot of bookkeeping in a zipper (paths, parents >>> associated with a loc). >>> >> >> You think you'll have performance problems? Have you benchmarked and >> checked? :) >> >> - James >> > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Ben Wolfson "Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure." [Larousse, "Drink" entry] -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
