It is quite common for applications to manipulate collections of objects, passing them as arguments to functions and returning them when the processing is complete.
对于应用程序来说,操纵对象集合、将它们作为参数传入函数并在处理完成时返回它们是非常常见的。
Therefore, each method's arguments will correspond to the parameters required by each of the three callable functions.
因此,每个方法的参数将对应于这三个可调用函数各自所需的参数。
Unfortunately, the details of how these functions are registered and the arguments passed to them vary by browser.
不幸的是,注册这些函数以及将参数传递给它们的方式因浏览器而异。
Default arguments on functions and methods greatly reduce the number of overloaded methods you need to create.
函数和方法的默认参数极大地减少了需要创建的重载方法数量。
Both of these features pass functions as arguments.
这两项功能都将函数作为参数进行传递。
It is highly likely that you will need to pass arguments to the server-side functions you create, so let's see how you would adapt one of the functions to accept and use an argument.
将参数传递到您创建的服务器端函数,这是很有可能的,所以,让我们来看看,如何改写一个函数来接受和使用参数。
DB2 UDB and IDS allow you to write multiple functions that have the same name but apply to different number of arguments or different argument types.
DB 2UDB和IDS允许您编写多个具有相同名称的函数,但必须带有不同数目或不同类型的参数。
In other words, when we multiply these functions, we get a function of the sum of those arguments.
换句话说,当我们把函数乘起来的时候,我们得到一个变量相加之后的函数。
Ensures that all functions in an expression have the correct number of arguments.
确保表达式中所有函数的自变量数量正确。
Generic types can be thought of as type "functions"; they are parameterized by type variables that can then be instantiated with various type arguments depending on context.
可以将泛型类型看作是类型“函数”;它们通过类型变量进行参数化,这些类型变量可以根据上下文用各种类型参数进行实例化。
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关键字定义,后跟函数名,然后是参数列表(这是强制的,即使该函数没有参数)。
Functions can have default arguments, as shown for the value argument of the compute function.
函数可以有默认参数,如compute函数的值参数所示。
Keyword arguments on functions and methods increase the self-documentation and flexibility of your code.
函数和方法的Keyword参数提高了代码的自解释性和灵活性。
C + + 0x allows you to define functions and classes with variable Numbers of arguments, and support is now the same in GCC.
C+ +0x允许定义具有数量可变的参数的函数或类,现在GCC提供相同的支持。
There are several arguments you can use to expand the functions of the Ajax calls.
有几个参数可用来扩展Ajax调用的函数。
The number of arguments to a function is called it's arity, and is used to help identify the functions.
函数的参数数量称为元数(arity),用于帮助标识函数。
You have not seen a whole lot of it here, but MochiKit.DOM is careful to transform the arguments that are actually passed to its functions into something that the particular function can use.
虽然仅仅是管中窥豹,但也能看到MochiKit.DOM小心地将实际传递给其函数的参数转化成该函数使用的形式。
User-defined functions (or procedures) can accept row types as arguments. Here is an example of formatting the each row returned in XML format.
用户定义函数(或流程)可以接受row类型参数。
The arguments applied to the load_biz_rules are the broker process id and the file name containing business rules; the return value is a list of Erlang functions.
传给load_biz _ rules的参数是broker进程的ID和业务规则所在的文件;返回的是一个Erlang函数列表。
C has support for defining functions with a variable number of arguments using va_list, and C++ never improved on that.
C支持使用 va_list定义具有数量可变的参数的函数,C++在这方面没有改进。
W3Eval supports functions with fixed and variable number of arguments. Functions are divided into following groups.
W3Eval支持带有固定或不定数量自变量的函数。
The SPE API defines a number of opaque data types which are used as arguments to various API functions.
SPEAPI定义了很多不透明的数据类型,它们被用作各个api函数的参数。
If you work with large arrays or hashes and use them as arguments to functions, use a reference instead of the variable directly.
如果使用大型数组或hash表,并使用它们作为函数的参数,那么应该使用它们的一个引用,而不应该直接使用它们。
Because enclosed functions are often required as arguments to Dojo functions, understanding how to set their context will save a lot of unnecessary debugging.
由于经常需要使用封闭的函数作为dojo函数的参数,因此理解如何设置上下文将省去大量的调试工作。
Now that we have loaded our business rules and built Erlang functions for each of them, it is time to apply market data arguments to them.
现在我们加载了业务规则,也为每条规则构造好了Erlang函数,是时候把市场数据参数传给它们了。
Your module's functions can tell what the situation is from two factors: which of your routines is being invoked, and the arguments being passed to it.
您的模块的功能可以告诉你两个因素:你的程序被调用,并已给它传递了参数。
Often the functions in the overload set differ in terms of the number of arguments, or the types of the arguments are unrelated.
重载集合中的函数通常有不同个数的参数或无关联的参数类型。
Why is it possible redefine functions with different Numbers of arguments than its prototype in a different file?
为什么它是可能的定义的功能与不同数量的参数比在一个不同的文件,它的原型?
A function that does not modify any of the objects it receives as arguments. Most pure functions are fruitful.
纯函数:不修改参数对象的函数。这种函数多数是有返回值的函数。
Having used the number of arguments to winnow the potentially viable functions, we must now look at whether the argument types match those of the parameters.
根据实参个数选出潜在的可行函数后,必须检查实参的类型是否与对应的形参类型匹配。
应用推荐