With the required parameters, variable number and keyword arguments can be used as well for positional and named parameters.
有了所需的参数,变量数和关键字参数还可以作为位置参数和名称参数使用。
Functions in Vimscript are defined using the function keyword, followed by the name of the function, then the list of parameters (which is mandatory, even if the function takes no arguments).
Vimscript中的函数使用function关键字定义,后跟函数名,然后是参数列表(这是强制的,即使该函数没有参数)。
Here's another example that combines positional parameters and keyword arguments.
下面是另外一个综合了位置参数和关键字参数的例子。
The operator modify command has a SETOLATRACE keyword with subsequent required parameters. The general form is.
运算符修改命令具有SETOLATRACE关键词一个后面的必要参数。
The keyword search can be executed on different parameters such as document type, categories, user, and custom metadata defined through the property sheet.
关键词搜索可在不同的参数(比如文档类型、类别、用户和通过属性表定义的定制元数据)上执行。
The transformation also provides an option to generate the keyword in place of class for template parameters of type class.
该转换还提供了一个选项来为类类型的模板参数生成替换 class 的关键字。
You can give it a name (that is, a class name), specify parameters (as in a constructor), and even use the .this keyword, which basically means referencing a variable within the scope of the function.
可以给其一个名称(也就是一个类名),指定参数(和在构造函数中一样),甚至可以使用关键字 .this,这意味着在函数范围内引用变量。
Then we use the ' Func ' keyword to define the input parameters and output parameters.
然后,我们使用'功能杂志'关键字来定义输入参数和输出参数。
Then we use the ' Func ' keyword to define the input parameters and output parameters.
然后,我们使用'功能杂志'关键字来定义输入参数和输出参数。
应用推荐