SICP Solutions

Chapter 3, Modularity, Objects, and State

Exercise 3.25

This is also simple. Just using the variable arguments in method parameter. Also note that in insert procedure, unlike the earlier version, now we first pass the value and then the keys as variable number of arguments. equal? procedure works for lists too, so thats it.

Code:

Example/Output: