2.2.2. Hierarchical Structures
Tree map
Abstract your answer to exercise 2.30 , to produce a procedure tree-map with the property that square-tree could be defined as
(define (square-tree tree) (tree-map square tree))