It USES Scala's pattern matching.
它使用Scala的模式匹配。
Using pattern matching to build XML.
利用模式匹配构建xml。
Listing 11 shows some basic usage of the pattern matching expansions.
清单11给出了模式匹配扩展的一些基本用法。
There are a number of algorithms used for pattern matching by rules engines.
规则引擎可以使用多种算法执行模式匹配。
Assigning values to variables is actually a special type of pattern matching.
为变量赋值实际上就是一种特殊的模式匹配。
If it's not, it won't — one of the tricky things about performing pattern matching.
如果格式不好,则不会正确匹配——这是执行模式匹配任务的一件棘手之事。
Our brains are just pattern matching machines, so we tend to notice patterns like that.
我们大脑是模式匹配机器,因此我们更容易注意到这样的模式。
Rules to pattern matching in both these files will control what gets denied or allowed.
这两个文件中的模式匹配规则控制拒绝或允许什么。
The built-in operators make text searching, replacing, and pattern matching effortless.
内置的操作符使得文本搜索、替换和模式匹配轻而易举。
Routes make use of regular expressions for pattern matching, and are expressed using XML.
路由在模式匹配时使用正则表达式,并且使用XML表示。
The current XSL standard USES the XPath technology to perform all of its pattern matching.
当前的XSL标准使用XPath技术来执行它所有的模式匹配。
The key to success with a socket wrench is pattern matching: The socket must match the nut.
成功使用套筒扳手的关键在于模式匹配:套筒扳手必须与螺母相匹配。
The key is pattern matching, as in Figure 1. Instead of coding commands, you code patterns.
其中的关键就是模式匹配,如图1 所示。您不需要编写命令,需要编写的是模式。
The pattern matching chapter is sufficient for learning about this fascinating side of Perl.
模式匹配这章足以让您掌握Perl的这一令人心醉的特性。
In that example, pattern matching was used to extract both the head and the tail of the list.
在这个示例中,使用模式匹配提取列表的开头和结尾部分。
Finally, when designing pattern matching statements, be wary of relying on a default case clause.
最后,当设计模式匹配指令时,对于默认case的依赖要小心。
You can use the pattern matching in Erlang so that a path on one side triggers a specific response.
您可以使用Erlang中的模式匹配,因此一端的路径可触发特定响应。
These techniques are based on pattern matching and event definitions and can be spatial or temporal.
这些技术都是基于模式匹配和事件定义的,可以是空间上的或时间上的。
With case classes, pattern matching begins to take on whole new levels of power, as shown in Listing 7.
有了case类,模式匹配具备了更强大的功能,如清单7所示。
InfoQ: a very neat and often used feature of Scala is pattern matching, which has no equivalent in Ruby.
InfoQ:Scala的一个非常灵巧,又被经常使用的一个特性就是模式匹配,而这在Ruby中却没有对应之物。
The pattern matching operation is potentially expensive, so it is vital to focus the search intelligently.
模式匹配操作可能是非常昂贵的,因此智能地集中搜索是非常重要的。
The idea of active patterns is to enable you to use the pattern matching syntax with other data structures.
活动模式的思想就是让你能把模式匹配语法用于其他数据结构。
This article has been a quick tour of pattern matching in F# and introduced its new active patterns feature.
这篇文章是F#中模式匹配的一个快速浏览,并介绍了它的新活动模式的特性。
For example, we can assign values to two variables simultaneously with one pattern matching (see Listing 31).
例如,可以使用一个模式匹配同时为两个变量赋值(参见清单31)。
This works because of a system in Erlang called pattern matching, which we will look at in more detail later.
可以这样做是因为在Erlang 中有一个称为模式匹配的系统,后面会详细讨论这个系统。
An IP address matches a netmask based on precise bit pattern matching rules (beyond the scope of this article).
基于精确的位模式匹配规则(超出本文范围),IP地址与网络掩码相匹配。
Given that both weigh in at about the same number of lines of code, where is the value of using pattern matching?
考虑到相同的代码量,使用模式匹配的价值体现在哪里?
We will examine Scala's support for pattern matching in more detail in Chapter 8, Functional Programming in Scala.
我们会在《第8章-scala函数式编程》了解更多Scala对于模式匹配支持的细节。
I also often hear the claim that while XQuery syntax looks nicer, it lacks XSLT's template style pattern matching.
我也常常听到这样的说法,虽然XQuery的语法看起来更好,但是缺少XSLT模板风格的模式匹配。
应用推荐