In the table implementations above, the keys are tested for equality using
This is not always the appropriate test. For instance, we might have a table with numeric keys in which we don't need an exact match to the number we're looking up, but only a number within some tolerance of it. Design a table constructor
that takes as an argument a
procedure that will be used to test ''equality'' of keys.
should return a
procedure that can be used to access appropriate
procedures for a local table.
There are no comments yet.
You must log in to post a comment.Login