灯下 登录
计算机科学 / SICP / 3.3.3 Representing Tables

Exercise 3.25 · 习题

Exercise 3.25: Generalizing one- and

two-dimensional tables, show how to implement a table in which values are

stored under an arbitrary number of keys and different values may be stored

under different numbers of keys. The lookup and insert!

procedures should take as input a list of keys used to access the table.

练习 3.25:将一维和二维表推广,说明如何实现一个表,使得值可以存储在任意数量的键下,且不同的值可以存储在不同数量的键下。lookup 和 insert! 过程应以一个键的表作为输入来访问该表。