3.3.3 representation of the form

xiaoxiao2021-03-06  41

The role of the table is to store information. In the form, the form of information is saved in the form of (CONS X Y) (called record), X is the keyword, used to mark information, and Y is the stored information. In one dimensional table, information can be obtained (by index x) as long as the primary index is passed, while in a two-dimensional table (first index obtaining sub-table, then index x) in the sub-table).

Whether it is a one-dimensional table or a two-dimensional table, there is a skeleton, the skeleton is a table (List, not queue) in * table *, with three skeleton sequences in the following table, the first skeleton sequence is called "dumb record ". We mark this two-dimensional table with "Dumb Record". Then this two-dimensional table is * Table *. Because of the existence of dumb records, we have to skip the first item, (CDR table) when applying this form. The picture below shows two-dimensional table * Table *, we see two Subtable of this two-dimensional table. Math and letters, respectively

To construct this form, as long as (Put 'Math' 45) (Put 'Math' * '42) (PUT' Letters' A '97) (PUT 'Letters' B " Just, the name of the table is * Table *, unfortunately, we can't change the name of the table, the code has been set. The table here is the foundation of Section 2.4.3.

转载请注明原文地址:https://www.9cbs.com/read-56728.html

New Post(0)