这里没有返回语句。
Finally notice that there is no return statement.
最后要注意没有返回语句。
Your return statement isn't returning anything.
你的返回语句不返回任何东西。
The mean value is passed back via the return statement.
平均值通过return语句传回。
In these cases, the script ends with a value or a return statement.
在这些情况下,脚本以值或返回语句结束。
The last line of a Groovy method is an implicit return statement.
Groovy方法的最后一行是一个隐式的return语句。
Can there be more than one return statement in the body of a method?
方法的主体可以包含多个return语句嘛?
TBSCAN(18) represents the RETURN statement in the SQL Table function.
TBSCAN(18)表示这个SQL表函数中的RETURN语句。
The return value of the function is specified with a return statement.
函数返回值使用return语句指定。
This is equivalent to a return statement in other programming languages.
这相当于其它编程语言中的return语句。
Since any code after the return statement is unreachable, it's marked in error.
由于return语句后面的所有代码都不能执行,因此将其标记为错误。
A method that returns a value must have a return statement that specifies the result.
一个有返回值的方法必须包含一条返回语句指明返回结果。
I can write it with or without the return statement, and my results will be the same.
我可以编写它,让它带有或者不带return语句,得到的结果是相同的。
Most of this plug-in parser's implementation functions consist of a simple return statement.
该插件解析器的实现函数的大部分是有一个简单的返回语句组成的。
And you don't need a comment before the return statement saying, "Now we return a value," either.
同样,在返回语句之前也不需要使用类似“Nowwereturn a value”这样的注释。
In some contexts, like a return statement, it is syntactically simpler to create a tuple than a list.
在某些情况下,比如返回语句中,用元组来实现语法上要比列表简单很多。
We have seen the return statement before, but in a fruitful function the return statement includes an expression.
返回语句我们之前已经遇到过了,但在有返回值的函数里面,返回语句可以包含表达式。
Several of the actions take advantage of the implicit return statement to return data to a GSP page named the same.
有些动作利用隐式的return语句将数据返回到具有相同名称的gsp页面。
Defs do not require a return statement, so if the last line produces some value, that value is returned by the def.
def不需要return语句,因此如果最后一行产生某个值,那么这个值由def返回。
A method that returns a value must have a return statement that specifies the result. Methods may return values of any type.
一个有返回值的方法必须包含一条返回语句指明返回结果。方法可以返回任何类型的结果。
On to the answers. You do not need to provide the return type of a lambda function; it is deduced from the return statement.
不需要为lambda函数提供返回类型;根据返回语句推导出返回类型。
In a fruitful function, it is a good idea to ensure that every possible path through the program hits a return statement.
在有返回值的函数里面,建议要确认一下每一种存在的可能,来让函数触发一个返回语句。
Finally, note how the single row VALUES clause is used in the return statement to return the end result as a single-row table.
最后,注意在return语句中使用了单行的values子句,以便将最后的结果以单行的表的形式返回。
Unfortunately, because the loop branch is so close to the return statement, you cannot predict both the loop branch and the return branch.
不幸的是,由于循环分支太接近返回语句,因此您无法预测循环分支和返回分支。
If the statement is not successful, the value of SQLERRNUM is captured and returned to the caller using the return statement and the RETURNS clause.
如果语句不成功,将使用return语句和returns子句捕捉SQLERRNUM的值并返回给调用者。
Because Groovy is a dynamically typed language, defs do not require any type declarations for parameters, nor do defs require a return statement.
因为Groovy是动态类型的语言,所以def不需要对参数作任何类型声明,def也不需要return语句。
The showopts function analyzes the options as before, but USES the return statement to return the value of the OPTIND variable to the calling statement.
showopts函数像以前一样分析选项,但是使用return语句将OPTIND变量的值返回给调用语句。
If there is no return statement, then the evaluation of the last statement in the method is returned (if it can be, if not Scala returns a compilation error.)
如果没有返回语句,将返回对方法的最后一个语句的求值(如果可行并且Scala没有返回编译错误的话)。
Changing the return type to float, for example, isn't flagged as an error because an int in the test method's return statement is automatically promoted to float.
如果将返回值改为float,这不会被标记成错误,因为test方法返回语句中的int会自动转换成float。
Changing the return type to float, for example, isn't flagged as an error because an int in the test method's return statement is automatically promoted to float.
如果将返回值改为float,这不会被标记成错误,因为test方法返回语句中的int会自动转换成float。
应用推荐