First, in broadest terms, the function's purpose is to "match what is in the first pattern, then replace it with the second pattern, using the third argument as the string to operate on."
首先,从最主要的角度来看,函数的目的是“查找与第一个模式中的值匹配的字符串,然后通过将第三个变量作为要操作的字符串,以第二个模式替换匹配结果”。
The case statement works like its counterparts in traditional programming languages: It compares its argument to each pattern in a list; when a match is found, the corresponding code executes.
case 语句的工作方式与传统编程语言中的对应结构相似。 它将其参数与列表中的每个模式比较;当找到匹配项时,则执行对应的代码。
The argument to parallel-nuke is a pattern.
parallel - nuke的参数是一个模式。
This pattern of argument, which is ubiquitous, is called "Inference to the best explanation."
这种论证模式,十分普遍,被称为,最佳解释推理
应用推荐