Scarica per Windows Premium
Offerta speciale per scoprire Premium
-50% a vita su tutti gli abbonamenti
Pubblicità
lambda expression
Definizione
1. expression defining an anonymous function 2. algebraic expression representing... Vedere più
lambda表达式
Once that's in place any library that wants to call a lambda expression just needs to call a method on an interface.
一旦如此,任何想要调用lambda表达式的库只要调用一个接口的一个方法就可以了。
In this particular example, a method reference is a clearer expression of what we mean than a lambda expression, but the idea is the same.
在这个特殊的例子中,方法引用比lambda表达式更清晰地表达了我们的意图,但它们的概念是一样的。
If capture of mutable locals were allowed, the platform would need to extend the local variable's lifetime for as long as the dynamic lifetime of any lambda expression that captures it.
如果捕获可变局部变量是允许的行为的话,平台就需要扩展局部变量的生存期,使之与任何捕获该变量的lambda表达式的动态生存期一样长。
Local '%1! ls!' or its members cannot have their address taken and be used inside an anonymous method or lambda expression
局部变量"%1!ls!"或其成员的地址不能用作匿名方法的参数,也不能在匿名方法或 lambda 表达式内部使用
Similar to parameter passing, the value capture is based on the fact that the variable can be copied, except that the captured variable is copied when the lambda expression is created, not when it is called
与参数传值类似,值捕获的前提是变量可以拷贝,不同之处则在于,被捕获的变量在 lambda 表达式被创建时拷贝, 而非调用时才拷贝:
Every recursively defined function can be seen as a fixed point of some suitably defined function closing over the recursive call with an extra argument, and therefore, using Y, every recursively defined function can be expressed as a lambda expression.
所有递归定义的函数都可以看作某个其他适当的函数的不动点,因此,使用Y 所有递归定义的函数都可以表达为lambda表达式
Specifically, the conditions for copy/move are as follows: If expression is an lvalue expression that is the (possibly parenthesized) name of an automatic storage duration object declared in the body or as a parameter of the innermost enclosing function or lambda expression, then overload resolution to select the constructor to use for initialization of the returned value is performed twice: first as if expression were an rvalue expression (thus it may select the move constructor), and if no suitable conversion is available, or if the type of the first parameter of the selected constructor is not an rvalue reference to the object's type (possibly cv-qualified), overload resolution is performed a second time, with expression considered as an lvalue (so it may select the copy constructor taking a reference to non-const).
若 表达式 是左值表达式,并且是声明于函数体内的自动存储对象的名称(可加括号 ) , 或是最内层外围函数或 lambda 表达式的参数,则进行二次 重载决议 ,以之选择用于初始化返回值的构造函数:首先如同 表达式 是右值表达式一般(从而可能选择移动构造函数 ) , 然后若无适合的转换,或若被选择的构造函数的首个参数的类型不是到该对象类型(可有 cv 限定)的右值引用,则进行第二次重载决议,将 表达式 当成左值(故可能选择接收到非 const 的引用的复制构造函数 ) 。
The cause of the error: The parameter of the lambda expression that may be passed is not a reference to the object, resulting in a copy of the object being modified.
错误原因:可能传递的lambda表达式的参数不是对象的引用,导致修改的只是一份对象的拷贝。
Array modifiers cannot be specified on lambda expression parameter name. They must be specified on its type.
不能在 lambda 表达式的参数名中指定数组修饰符。数组修饰符必须在其类型中指定。
Joel Moses credits Landin with introducing the term closure to refer to a lambda expression whose open bindings (free variables) have been closed by (or bound in) the lexical environment, resulting in a closed expression, or closure.
Joel Moses认为是Landin发明了"闭包"这一术语,用来指代某些其开放绑定(自由变量)已经由其语法环境完成闭合(或者绑定)的lambda表达式,从而形成了闭合的表达式,或称闭包。
Because the lambda expression has the right argument and return types, the compiler verifies that it can be converted into a Comparator and generates the appropriate code for doing so.
因为lambda表达式拥有正确的参数和返回类型,编译器将证实可以把这些类型转换成Comparator,并生成完成此操作的相应代码。
Delegate '|1' requires an 'AddressOf' expression or lambda expression as the only argument to its constructor.
委托"|1"需要使用一个"AddressOf"表达式或 lambda 表达式作为其构造函数的唯一参数。
'ReadOnly' variable cannot be the target of an assignment in a lambda expression inside a constructor.
在构造函数内的 lambda 表达式中,"ReadOnly"变量不能作为赋值的目标。
Nessun risultato trovato per questo significato.

Sinonimi e analogie di "lambda expression" in inglese

Parola ed espressione del giorno
Immagine del giorno
wheelbarrow: open container with handles and a wheel for transport
Scopri il significato
Pubblicità

Risultati: 28. Esatti: 28. Tempo di risposta: 14 ms.