chickadee » tree-rewrite » rewrite-map-tree

rewrite-map-tree TREE RULESprocedure

Applies the given set of rewrite rules to all elements in the list TREE. If none of the rules match a particular element, and that element is a list, recursively invokes itself on all elements in the tail of that list, and the head of the list is left in place.