The next two lines use patternmatching to pick off the values required to enforce this rule when the returned function is actually executed.
接下来两行用模式匹配摘出实施规则所必需的数据。
2
Now look at the search function. This function USES one of the most powerful features of Scala, its patternmatching.
现在参看搜索函数,这个函数使用一个功能最强大的scala特性:模式匹配。
3
Patternmatching is used to evaluate the arguments to the function, so if you supply a tuple with three elements to the mathexp() function, the patternmatching will fail.