图17:节点列表。
无需遵循节点列表,简单的数学!
get children:获取节点的子节点列表。
每个工作列表都包含一个或多个工作节点。
这表示在列表中不再有更多的节点。
为上一步创建的所有工作节点定义工作列表。
Define a work list for all the work nodes created in the previous step.
程序需要检查确认当前节点是否为NULL列表。
The program needs to check and see if the current node is the NULL list.
用户必须从列表中选择一个节点,见图4。
Users have to select one from the list, as shown in Figure 4 below.
不过,为了实现本文的目标,我将使用与列表节点相同的pair。
But for the purposes here, you will use pairs exactly as you use list nodes.
为了获得列表的下一个节点,您需要使用cdr函数。
To retrieve the next node of a list, you need to use the function CDR.
使用cons函数在Scheme中创建一个列表节点。
因此,这个列表不需要为最后两个节点分配额外的内存。
Therefore, this list does not require additional memory for the last two nodes.
要记住,一个工作节点可能出现在多个工作列表中。
Remember that a work node can be in more than one work list.
也可以在工作列表中定义工作节点的顺序。
You can also define the order of work nodes in the work list.
因此,这个列表不需要为最后两个节点分配额外的内存。
Therefore, this list does not require additional memory for the last two nodes.
我也写的列表是一个类,处理节点。
The List is a class that I also wrote, which deals with nodes.
无法将节点node1. ha . lab的密钥添加到受信任的密钥列表。
Unable to add the key for node node1. ha. lab to the trusted keys list.
无法将节点 node2.ha.lab 的密钥添加到受信任的密钥列表。
Unable to add the key for node node2. ha. lab to the trusted keys list.
无法将节点 node2.ha.lab 的密钥添加到受信任的密钥列表。
Unable to add the key for node node2. ha. lab to the trusted keys list.
应用推荐