sicp-all-tasks/sicp/4_002e12

7 lines
311 B

Exercise 4.12: The procedures
define-variable!, set-variable-value! and
lookup-variable-value can be expressed in terms of more abstract
procedures for traversing the environment structure. Define abstractions that
capture the common patterns and redefine the three procedures in terms of these
abstractions.