记住,是cons创建了列表节点。
使用适用于列表的列表节点数据结构。
粘附到双向链接的列表节点或其他数据类型。
使用cons函数在Scheme中创建一个列表节点。
不过,为了实现本文的目标,我将使用与列表节点相同的pair。
But for the purposes here, you will use pairs exactly as you use list nodes.
拖到绘图页上,然后粘附到双向链接的列表节点或其他数据类型。
Drag onto the page, then glue to double linked list nodes or other data types.
拖到绘图页上,然后粘附到单向链接的列表节点或其他数据类型。
Drag onto the page, then glue to a single linked list node or other data type.
同理,您也可以在节点中存储指向列表节点的指针,这样就可以将列表作为列表节点的数据。
Using that concept, you can also store Pointers to list nodes in your node, allowing you to have lists as the data for a list node. Here's how it might look.
使用这个通用的列表节点结构,您现在可以定义列表和不需要考虑存储在列表中的数据类型的列表操作。
With this generic list node structure, you can now define lists and list operations that work regardless of the type of data stored in them.
在这个新的通用数据类型的帮助下,您现在可以得到一个非常通用的列表节点结构,如清单4所示。
Armed with this new generic data type, you can now make a very generic list node structure, as shown in Listing 4.
它们与前面我向您介绍的c中的节点结构稍有不同,因为一个pair的下半部分不必是一个指向某个列表节点的指针。
They are slightly different from the node structures I showed you in c, above, because the bottom half of a pair doesn't have to be a pointer to a list node.
这表示在列表中不再有更多的节点。
文档路由由过程、工作节点、工作列表和工作包组成。
Document routing consists of processes, work nodes, work lists, and work packages.
矢量数据要求的存储要比栅格数据少得多,因为弧节点列表简化并减少了表示地图中包含的特征所需的数据。
Vector data require far less storage than raster data because arc node lists simplify and reduce the data required to make sense of the features contained in the map.
所谓的弧节点列表包含弧和节点。
在控制成员节点列表的布局的模板中,我们添加了两个链接。
In the template that controls the layout of the list of member nodes, we added a couple of links.
该节点将出现在节点列表中。
管理员也可以为每个工作节点分配访问控制列表,进一步在工作节点级别上进行安全控制。
An administrator can also assign an access control list to each work node for additional security control at the work node level.
例如,当从一个列表中删除某个节点时,必须记住释放这个节点结构的内存。
For example, when removing a node from a list, you have to remember to free the memory for the node structure.
您会发现状态摘要显示有未完成节点,但展开时,该列表中未显示任何节点。
You might find that the status summary shows incomplete nodes, but when you drill down, no nodes show in the list.
程序需要检查确认当前节点是否为NULL列表。
The program needs to check and see if the current node is the NULL list.
匹配节点的列表通常是相当简洁的,只包括节点名和节点的内部句柄。
The list of matching nodes is normally rather terse, including just the node name and the node's internal handle.
用户必须从列表中选择一个节点,见图4。
Users have to select one from the list, as shown in Figure 4 below.
解析是指获得兼容绑定的完整列表,或者在节点列表中添加有效的成员。
By resolving, we mean either to get a complete list of compatible bindings or to add a valid member to the node list.
此方法将返回子模型对象(例如图中的节点)列表。
This method returns the list of child model objects, such as the nodes in the diagram.
图17:节点列表。
把这个节点添加到查找列表的开头,作为导入上下文返回节点的引用。
This node is added to the beginning of the lookup list and a reference to this node is returned as the import context.
另一个需要注意的是,map()和filter()函数是完全通用的,用于处理任何列表(不只是节点列表)。
One other thing to note is that the map() and filter() functions are totally generic, working on any list, not just lists of nodes.
对于列表L 内的每个节点n,执行重新供应,如下所示
For each node n in the list L, carry out re-provisioning as follows
在我们的示例中,我们使用:default实现来指定所有未加入列表的节点都应无修改地返回自身。
In our example, we use a: default implementation to specify that all unlisted nodes should return themselves without modification.
应用推荐