因为map接受一个参数,即一个函数,我们可以用_占位符来替代有名参数。
Because map takes one argument, a function, we can use the "placeholder" indicator _ instead of a named parameter.
注解还可以接受命名元素(named element),这种元素与方法参数相似,但是参数的次序和数量不重要,因为每个参数都有名称。
Annotations can also take named elements, which are similar to method parameters, except that the parameters' order and number don't matter because each one is named.
其他增强包括call语句能够以任意次序接受有名称的参数。
Other enhancements include the ability for CALL statements to take named arguments in any order.
于是就有了我们最初的想法:一组消息的集合,其中每条消息都有名称,以及一组类型化的参数。
Here's our first idea: a collection of messages, where each message has a name and a list of typed parameters.
创建一个参数中列有名称的空的EGL资源文件(在项目指定的EGL资源文件夹下)。
CreateEGLFile: Creates an empty EGL source file (under the EGLSource folder for the project specified) with the name specified in the parameters.
创建一个参数中列有名称的EGL包(在项目指定的EGL资源文件夹下)。
CreatePackage: Creates an EGL package (under the EGLSource folder for the project specified) with the name specified in the parameters.
创建一个参数中列有名称的空的EGL资源文件-在项目指定的包中(在EGL资源文件夹下)。
CreateEGLFile: Creates an empty EGL source file — in the specified package (under the EGLSource folder) for the project specified — with the name specified in the parameters.
在本例中,lambda函数保持没有名字:它是在内侧作为array _ filter函数的参数来创建的。
In this case, the lambda function remains nameless: It is created inline as a parameter to the array_filter function.
RenameGroup方法使用两个字符串参数:组的原有名称和新名称。
The RenameGroup method takes two string arguments: the old name and new name of the group.
模块有名称、路径(包含它的文件)和其他一些参数,比如readonly禁止修改内容。
A module has a name, a path that contains its files, and some other parameters, such as read only, which protects the contents from modification.
创建一个参数中列有名称的空的EGL构建文件。
CreateEGLBuildFile: Creates an empty EGL build file with the name specified in the parameters.
按钮拥有名为onclick的参数,它的值是Callback,当事件发生的时候,就会执行一段命令式的应用程序逻辑。
A button has an argument named onclick whose value is a Callback, a snippet of imperative application logic to be executed when the event occurs. In this particular case two things happen.
该参数用于检查来自位于WebSphereMQ通道另一端的客户端的证书专有名称(DN)。
This parameter is used to check the Distinguished Name (DN) of the certificate from the client at the other end of a WebSphere MQ channel.
Command模式是非常有名的,它把一些独特的活动封装起来成为可重用的对象,对于每次请求,这些对象的行为都可以被参数化。
The command pattern is distinguished by the encapsulation of distinct activities into reusable objects whose behavior can be parameterized per request.
当可以为所有运行时变量使用同一个符号时,每个参数都没有名称,因而必须按参数在sql语句中的序号位置来跟踪每个参数。
While you can use the same symbol for all the run-time variables, each parameter will be nameless and you will have to keep track of each parameter by its ordinal position in the SQL statement.
当可以为所有运行时变量使用同一个符号时,每个参数都没有名称,因而必须按参数在sql语句中的序号位置来跟踪每个参数。
While you can use the same symbol for all the run-time variables, each parameter will be nameless and you will have to keep track of each parameter by its ordinal position in the SQL statement.
应用推荐