尽量尝试将您的扩展函数设计为仅使用双精度、字符串、布尔和节点集作为实参和返回值的类型。
Try to design your extension functions so that they use only doubles, strings, booleans, and node-sets as both arguments and return values.
要调用函数并使用它的返回值作为语言表达式的一部分,只需要命名它并附加一个使用圆括号括起的参数列表。
To call a function and use its return value as part of a larger expression, simply name it and append a parenthesized argument list.
如果服务器端组件上的方法具有非空返回值,该值就会作为其惟一的实参传递进此回调函数。
If the method on the server-side component has a non-void return value, that value is passed into the callback function as its only argument.
Scala把主体之前的部分包含等于号作为函数定义,而一个函数在函数式编程中永远都有返回值。
Scala regards a method with the equals sign before the body as a function definition and a function always returns a value in functional programming.
每个都可以赋值给一个变量,作为参数传递,或作为返回值从函数中返回。
Each can be assigned to a variable, passed as an argument, or returned from a function. For instance, here's an example of storing a function.
函数式语言依赖于一等函数(可在任何其他语言结构可能出现的地方出现的函数)作为参数和返回值。
Functional languages rely on first-class functions (functions that can appear anywhere any other language construct can appear) as parameters and return values. Figure 3 illustrates this concept.
许多非托管库包含将这些数据类型作为参数传递并返回值的函数。
Many unmanaged libraries contain functions that pass these data types as parameters and return values.
当您使用一个字符串作为从一个函数返回值,它将正常工作。
When you are using a string literal as a return value from a function, it will work properly.
实现了一个函数的多个版本,编译器决定何时调用哪个函数。函数的返回值不作为区分重载函数的依据。
Overloading is when you make multiple versions of a function. The compiler figures out which function to call. Overloading does not take return type to differentiate overloaded method.
实现了一个函数的多个版本,编译器决定何时调用哪个函数。函数的返回值不作为区分重载函数的依据。
Overloading is when you make multiple versions of a function. The compiler figures out which function to call. Overloading does not take return type to differentiate overloaded method.
应用推荐