请参见参考资料详细了解内核列表函数。
这两个函数和获取服务器名称列表函数的调用方式类似。
These two functions operate similarly to those which allow you to obtain the list of Server names.
两个非常有用的过程列表函数是filter和map 。
Two particularly useful procedural list functions are filter and map . The filter function takes a list and removes those elements that fail to meet some specified criterion.
You try to design actually I'm going to come back to that in a second. It's like you're trying to use a hash function that spread things out pretty evenly. But the places you store into in those lists may have to themselves have a small list in there, and when you go to check something, you may have to do a linear search through the elements in that list.
你尝试着去设计,实际上过会儿我会回头讲解这个问题,类似于你需要用一个哈希函数,非常平均的将物体分发出去,但是在列表中你数据,映射到的地方可能会有自己的一小段列表,当你回头查找数据的时候,你可能需要在那一小段列表中做线性查找。
应用推荐