LAMBDA EXPRESSION - 翻译成中文

lambda表达式
一个lambda表达式

在 英语 中使用 Lambda expression 的示例及其翻译为 中文

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
A lambda expression is a block of code that can have parameters and can be executed later, either once or multiple times.
Lambda表达式是一个可以传递的代码块,允许您稍后执行它,只执行一次或多次。
(The terms"closure" and"Lambda expression" are used interchangeably in the Java context, even though there are theoretical differences.).
纵然术语“闭包”和“Lambda表达式”在理论上有所差别,但在Java语境中它们经常交替使用。
The lambda expression is an anonymous function that contains expressions and statements and it can be used to create delegates or expression tree types.
Lambda表达式”是一个匿名函数,它可以包含表达式和语句,并且可用于创建委托或表达式目录树类型。
You can't even assign a lambda expression to a variable of type Object because Objectis not a functional interface.
不能把lambda表达式赋给类型为Object的变量,Object不是一个函数式接口。
As you can see in the above example, we specify different criteria using LINQ operator and lambda expression in a single statement.
正如你在上面的例子中看到的,我们在单个语句中使用LINQ运算符和lambda表达式指定不同的标准。
A lambda expression is a block of code that you can pass around so it can be executed later, once or multiple times.
Lambda表达式是一个可传递的代码块,可以在以后执行一次或多次。
One thing missing from the lambda expression syntax presented above is the ability to specify the return type of the function.
上面提供的lambda表达式语法缺少的一个东西是指定函数的返回类型的能力。
A lambda expression is a block of code that can have parameters and can be executed later, either once or multiple times.
Lambda表达式是一个可传递的代码块,可以在以后执行一次或多次。
The following example shows a lambda expression that captures the local variable i by value and the local variable j by reference.
以下示例显示一个通过值捕获局部变量i并通过引用捕获局部变量j的lambda表达式
A lambda expression is an anonymous function that can contain expressions and statements, and can be used to create delegates or expression tree types.
Lambda表达式”是一个匿名函数,它可以包含表达式和语句,并且可用于创建委托或表达式树类型。
An outer variable must be definitely assigned before it can be consumed in a lambda expression.
必须明确地分配外部变量,然后才能在lambda表达式中使用该变量。
Out::println is a method reference that is equivalent to the lambda expression x-> System. out. println(x).
Out::println是一个方法引用,它等价于lambda表达式x->System.out.println(x)。
Remember that lambda expression must have type and that type must have only one abstract method.
请记住,lambda表达式必须定义类型,而该类型必须只有一个抽象方法。
We passed a lambda expression x-> x*x to map() method which applies this to all elements of the stream.
我们将x->x*xlambda表达式传到map()方法,后者将其应用到流中的每一个元素。
Because the lambda expression captures i by value, the reassignment of i later in the program does not affect the result of the expression..
由于lambda表达式通过值捕获i,因此在程序后面部分中重新指派i不影响该表达式的结果。
Out::println is a method reference that is equivalent to the lambda expression x-> System. out. println(x).
Out::println属于一个方法引用(methodreference),相当于lambda表达式x->System.out.println(x).
The following example illustrates how to implement a simple, inline map() function that squares its input using a lambda expression.
下例演示了如何实现一个简单的行内map()函数,它使用Lambda表达式计算输入的平方。
Almost not at all, but if you want to coerce a lambda expression into such a type, there's no other way.
这很有用吗?几乎没用,但是如果你希望某个Lambda表达式是这种类型,还真没别的办法。
Almost not at all, but if you want to coerce a lambda expression into such a type, there's no other way.
这有用吗?几乎没用,但如果你想要将lambda表达式强制转换为这个类型,除此就别无他法了。
The following example contains a lambda expression that captures the local unmanaged variable ch by value and takes a System.
以下示例包含一个lambda表达式,它通过值捕获局部非托管变量ch,并采用System.
结果: 86, 时间: 0.0298

Lambda expression 用不同的语言

单词翻译

顶级字典查询

英语 - 中文