一位英国天文学家在分析一台太阳光摄谱仪时,注意到一种特殊的光谱线模式,它与图书馆里的任何一种都不匹配。
A British astronomer was analyzing a spectrograph of sunlight, and he noticed a particular pattern of spectral lines that didn't match anything in the library.
那么我们如何知道哪些光谱模式与哪些元素相匹配呢?
So how do we know which spectral patterns match up with which elements?
清单11给出了模式匹配扩展的一些基本用法。
Listing 11 shows some basic usage of the pattern matching expansions.
我们大脑是模式匹配机器,因此我们更容易注意到这样的模式。
Our brains are just pattern matching machines, so we tend to notice patterns like that.
成功使用套筒扳手的关键在于模式匹配:套筒扳手必须与螺母相匹配。
The key to success with a socket wrench is pattern matching: The socket must match the nut.
它依次通过每个组合进行处理,尝试将输入形式与模式进行匹配,如果匹配的话,它就产生相关联的展开形式。
It proceeds through each one, trying to match the input form to the pattern and, if it matches, it produces the associated expansion.
通过在大括号中指定匹配的数目,您可以匹配特定数目的模式。
You can match a specific number of patterns by specifying the number of matches in braces.
你可以在任何序列匹配的最后使用这个模式来解除长度制约。
You can use this pattern at the end of any sequence match to remove length as a condition.
为了正确地在光标周围匹配左边和右边上下文,要确保该模式仅在光标所在的列进行匹配。
In order to correctly match left and right contexts around the cursor, it needs to ensure the pattern matches only at the cursor's column.
此模式与任何不包含逗号的字符组匹配。
The pattern matches any group of characters not containing a comma.
将请求参数(特别是目的地url)与规则的模式进行匹配。
The request parameters and, especially, destination URL, are matched with the rules' patterns.
其中的关键就是模式匹配,如图1 所示。您不需要编写命令,需要编写的是模式。
The key is pattern matching, as in Figure 1. Instead of coding commands, you code patterns.
为变量赋值实际上就是一种特殊的模式匹配。
Assigning values to variables is actually a special type of pattern matching.
在这个示例中,使用模式匹配提取列表的开头和结尾部分。
In that example, pattern matching was used to extract both the head and the tail of the list.
这两个文件中的模式匹配规则控制拒绝或允许什么。
Rules to pattern matching in both these files will control what gets denied or allowed.
此命令仅仅输出输入中匹配的模式,而不会输出包含匹配的行。
This command only outputs the matched patterns from the input, not the lines of the input that contain a match.
并非确定字符串是否与模式匹配,它有时需要提取每个匹配项。
Rather than determining if a string matches a pattern, it is sometimes desirable to extract every match.
这篇文章是对活动模式这个特性的详细讨论,F#已经具备相当强大的模式匹配能力。
This article takes a closer look at active patterns a feature that adds to F#'s already strong pattern matching capabilities.
活动模式的思想就是让你能把模式匹配语法用于其他数据结构。
The idea of active patterns is to enable you to use the pattern matching syntax with other data structures.
内置的操作符使得文本搜索、替换和模式匹配轻而易举。
The built-in operators make text searching, replacing, and pattern matching effortless.
近似匹配确保了相应地“奖赏”有成功可能的DNA模式。
The approximate match ensured that potentially successful DNA patterns were rewarded accordingly.
如果打算使用示例程序,那么需要修改这些定义,以匹配您的模式修改。
If you intend to use the sample programs, modify these definitions to match your schema changes.
模式将自动切换以匹配所选的运行时目标。
The mode is automatically switched to match the selected runtime target.
这对于验证输入或分隔与模式匹配的文档很有用。
This is useful for validating input or for splitting a document where the pattern matches.
规则引擎可以使用多种算法执行模式匹配。
There are a number of algorithms used for pattern matching by rules engines.
查询或显示当前分支中文件模式的匹配。
Looks for and displays matches for a pattern in files in your current branch.
使用模式需要匹配最常见的计算机使用情况。
Usage patterns consistent with the most likely usage of the computer is desired.
其它子模式是否会排除在匹配之外?
它使用Scala的模式匹配。
利用模式匹配构建xml。
应用推荐