Jan Rychter <[email protected]> writes:
> We should also probably have a nicely generalized tree walk method for
> those cases when we really lost a widget and need to find it. I already
> have two similar methods like this in my tree: one for containers (a
> modified version of your container-update-children) and another one for
> building breadcrumbs. I kept them separate because I wanted to use
> method dispatch for finding navigation widgets, but one could presumably
> write a generalized tree walking method.

See `walk-widgets' in my modern-dispatching branch for this.  It is a
simple function because the real generic interface is
`generate-subwidgets'; users can safely build all sorts of walking
functions on top of this, such as one with selective-descent features
like Python's os.walk, one with value reduction, and so on.

-- 
I write stuff at http://failex.blogspot.com/ now.  But the post
formatter and themes are terrible for sharing code, the primary
content, so it might go away sooner or later.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to